home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / inet / internet-drafts / draft-ietf-pppext-lcp-main-01.txt < prev    next >
Text File  |  1993-08-09  |  111KB  |  3,578 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                        W A Simpson
  8. Internet Draft                                                Daydreamer
  9. expires in six months                                        August 1993
  10.  
  11.  
  12.                    The Point-to-Point Protocol (PPP)
  13.  
  14.  
  15.  
  16. Status of this Memo
  17.  
  18.    This document is the product of the Point-to-Point Protocol Working
  19.    Group of the Internet Engineering Task Force (IETF).  Comments should
  20.    be submitted to the ietf-ppp@ucdavis.edu mailing list.
  21.  
  22.    Distribution of this memo is unlimited.
  23.  
  24.    This document is an Internet Draft.  Internet Drafts are working
  25.    documents of the Internet Engineering Task Force (IETF), its Areas,
  26.    and its Working Groups.  Note that other groups may also distribute
  27.    working documents as Internet Drafts.
  28.  
  29.    Internet Drafts are draft documents valid for a maximum of six
  30.    months.  Internet Drafts may be updated, replaced, or obsoleted by
  31.    other documents at any time.  It is not appropriate to use Internet
  32.    Drafts as reference material or to cite them other than as a
  33.    ``working draft'' or ``work in progress.''
  34.  
  35.    Please check the 1id-abstracts.txt listing contained in the
  36.    internet-drafts Shadow Directories on nic.ddn.mil, nnsc.nsf.net,
  37.    nic.nordu.net, ftp.nisc.sri.com, or munnari.oz.au to learn the
  38.    current status of any Internet Draft.
  39.  
  40. Abstract
  41.  
  42.    The Point-to-Point Protocol (PPP) provides a standard method for
  43.    transporting multi-protocol datagrams over point-to-point links.  PPP
  44.    is comprised of three main components:
  45.  
  46.       1. A method for encapsulating multi-protocol datagrams.
  47.  
  48.       2. A Link Control Protocol (LCP) for establishing, configuring,
  49.          and testing the data-link connection.
  50.  
  51.       3. A family of Network Control Protocols (NCPs) for establishing
  52.          and configuring different network-layer protocols.
  53.  
  54.    This document defines the PPP organization and methodology, and the
  55.  
  56.  
  57.  
  58. Simpson                  expires in six months                  [Page i]
  59. DRAFT                   Point-to-Point Protocol              August 1993
  60.  
  61.  
  62.    PPP encapsulation, together with an extensible option negotiation
  63.    mechanism which is able to negotiate a rich assortment of
  64.    configuration parameters and provides additional management
  65.    functions.  The PPP Link Control Protocol (LCP) is described in terms
  66.    of this mechanism.
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. Simpson                  expires in six months                 [Page ii]
  114. DRAFT                   Point-to-Point Protocol              August 1993
  115.  
  116.  
  117. 1.  Introduction
  118.  
  119.    Encapsulation
  120.  
  121.       The PPP encapsulation provides for multiplexing of different
  122.       network-layer protocols simultaneously over the same link.  It is
  123.       intended that PPP provide a common solution for easy connection of
  124.       a wide variety of hosts, bridges and routers [1].
  125.  
  126.       The PPP encapsulation has been carefully designed to retain
  127.       compatibility with most commonly used supporting hardware.
  128.  
  129.       By default, when used with HDLC framing, only 8 additional octets
  130.       are necessary to form the encapsulation.  In environments where
  131.       bandwidth is at a premium, the encapsulation may be shortened to
  132.       as few as 2 octets.  To support high speed hardware
  133.       implementations, PPP provides that the default encapsulation
  134.       header and information fields fall on 32-bit boundaries, and
  135.       allows the trailer to be padded to an arbitrary boundary.
  136.  
  137.    Link Control Protocol
  138.  
  139.       In order to be sufficiently versatile to be portable to a wide
  140.       variety of environments, PPP provides a Link Control Protocol
  141.       (LCP).  The LCP is used to automatically agree upon the
  142.       encapsulation format options, handle varying limits on sizes of
  143.       packets, authenticate the identity of its peer on the link,
  144.       determine when a link is functioning properly and when it is
  145.       defunct, detect a looped-back link and other common
  146.       misconfiguration errors, and terminate the link.
  147.  
  148.    Network Control Protocols
  149.  
  150.       Point-to-Point links tend to exacerbate many problems with the
  151.       current family of network protocols.  For instance, assignment and
  152.       management of IP addresses, which is a problem even in LAN
  153.       environments, is especially difficult over circuit-switched
  154.       point-to-point links (such as dial-up modem servers).  These
  155.       problems are handled by a family of Network Control Protocols
  156.       (NCPs), which each manage the specific needs required by their
  157.       respective network-layer protocols.  These NCPs are defined in
  158.       companion documents.
  159.  
  160.    Configuration
  161.  
  162.       It is intended that PPP links be easy to configure.  By design,
  163.       the standard defaults handle all common configurations.  The
  164.       implementor can specify improvements to the default configuration,
  165.  
  166.  
  167.  
  168. Simpson                  expires in six months                  [Page 1]
  169. DRAFT                   Point-to-Point Protocol              August 1993
  170.  
  171.  
  172.       which are automatically communicated to the peer without operator
  173.       intervention.  Finally, the operator may explicitly configure
  174.       options for the link which enable the link to operate in
  175.       environments where it would otherwise be impossible.
  176.  
  177.       This self-configuration is implemented through an extensible
  178.       option negotiation mechanism, wherein each end of the link
  179.       describes to the other its capabilities and requirements.
  180.       Although the option negotiation mechanism described in this
  181.       document is specified in terms of the Link Control Protocol (LCP),
  182.       the same facilities are designed to be used by other control
  183.       protocols, especially the family of NCPs.
  184.  
  185.  
  186. 1.1.  Specification of Requirements
  187.  
  188.    In this document, several words are used to signify the requirements
  189.    of the specification.  These words are often capitalized.
  190.  
  191.    MUST      This word, or the adjective "required", means that the
  192.              definition is an absolute requirement of the specification.
  193.  
  194.    MUST NOT  This phrase means that the definition is an absolute
  195.              prohibition of the specification.
  196.  
  197.    SHOULD    This word, or the adjective "recommended", means that there
  198.              may exist valid reasons in particular circumstances to
  199.              ignore this item, but the full implications must be
  200.              understood and carefully weighed before choosing a
  201.              different course.
  202.  
  203.    MAY       This word, or the adjective "optional", means that this
  204.              item is one of an allowed set of alternatives.  An
  205.              implementation which does not include this option MUST be
  206.              prepared to interoperate with another implementation which
  207.              does include the option.
  208.  
  209.  
  210. 1.2.  Terminology
  211.  
  212.    This document frequently uses the following terms:
  213.  
  214.    peer      The other end of the point-to-point link.
  215.  
  216.    silently discard
  217.              This means the implementation discards the packet without
  218.              further processing.  The implementation SHOULD provide the
  219.              capability of logging the error, including the contents of
  220.  
  221.  
  222.  
  223. Simpson                  expires in six months                  [Page 2]
  224. DRAFT                   Point-to-Point Protocol              August 1993
  225.  
  226.  
  227.              the silently discarded packet, and SHOULD record the event
  228.              in a statistics counter.
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278. Simpson                  expires in six months                  [Page 3]
  279. DRAFT                   Point-to-Point Protocol              August 1993
  280.  
  281.  
  282. 2.  PPP Encapsulation
  283.  
  284.    The PPP encapsulation is used to disambiguate multiprotocol
  285.    datagrams.  This encapsulation requires framing to indicate the
  286.    beginning and end of the encapsulation.  Methods of providing framing
  287.    are specified in companion documents.
  288.  
  289.    A summary of the PPP encapsulation is shown below.  The fields are
  290.    transmitted from left to right.
  291.  
  292.            +----------+-------------+---------+
  293.            | Protocol | Information | Padding |
  294.            | 16 bits  |      *      |    *    |
  295.            +----------+-------------+---------+
  296.  
  297.  
  298.    Protocol Field
  299.  
  300.       The Protocol field is two octets and its value identifies the
  301.       protocol encapsulated in the Information field of the frame.  The
  302.       field is transmitted and received most significant octet first.
  303.  
  304.       The structure of this field is consistent with the ISO 3309
  305.       extension mechanism for address fields.  All Protocols MUST be
  306.       odd; the least significant bit of the least significant octet MUST
  307.       equal "1".  Also, all Protocols MUST be assigned such that the
  308.       least significant bit of the most significant octet equals "0".
  309.       Frames received which don't comply with these rules MUST be
  310.       treated as having an unrecognized Protocol.
  311.  
  312.       Protocol field values in the "0***" to "3***" range identify the
  313.       network-layer protocol of specific datagrams, and values in the
  314.       "8***" to "b***" range identify datagrams belonging to the
  315.       associated Network Control Protocols (NCPs), if any.
  316.  
  317.       Protocol field values in the "4***" to "7***" range are used for
  318.       protocols with low volume traffic which have no associated NCP.
  319.       Protocol field values in the "c***" to "f***" range identify
  320.       datagrams as link-layer Control Protocols (such as LCP).
  321.  
  322.       Up-to-date values of the Protocol field are specified in the most
  323.       recent "Assigned Numbers" RFC [2].  Current values are assigned as
  324.       follows:
  325.  
  326.          Value (in hex)  Protocol Name
  327.  
  328.          0001 to 001f    reserved (transparency inefficient)
  329.          0021            Internet Protocol
  330.  
  331.  
  332.  
  333. Simpson                  expires in six months                  [Page 4]
  334. DRAFT                   Point-to-Point Protocol              August 1993
  335.  
  336.  
  337.          0023            OSI Network Layer
  338.          0025            Xerox NS IDP
  339.          0027            DECnet Phase IV
  340.          0029            Appletalk
  341.          002b            Novell IPX
  342.          002d            Van Jacobson Compressed TCP/IP
  343.          002f            Van Jacobson Uncompressed TCP/IP
  344.          0031            Bridging PDU
  345.          0033            Stream Protocol (ST-II)
  346.          0035            Banyan Vines
  347.          0037            reserved (until 1993)
  348.          00ff            reserved (compression inefficient)
  349.  
  350.          0201            802.1d Hello Packets
  351.          0231            Luxcom
  352.          0233            Sigma Network Systems
  353.  
  354.          8021            Internet Protocol Control Protocol
  355.          8023            OSI Network Layer Control Protocol
  356.          8025            Xerox NS IDP Control Protocol
  357.          8027            DECnet Phase IV Control Protocol
  358.          8029            Appletalk Control Protocol
  359.          802b            Novell IPX Control Protocol
  360.          802d            Reserved
  361.          802f            Reserved
  362.          8031            Bridging NCP
  363.          8033            Stream Protocol Control Protocol
  364.          8035            Banyan Vines Control Protocol
  365.  
  366.          c021            Link Control Protocol
  367.          c023            Password Authentication Protocol
  368.          c025            Link Quality Report
  369.          c223            Challenge Handshake Authentication Protocol
  370.  
  371.       Developers of new protocols MUST obtain a number from the Internet
  372.       Assigned Numbers Authority (IANA), at IANA@isi.edu.
  373.  
  374.    Information Field
  375.  
  376.       The Information field is zero or more octets.  The Information
  377.       field contains the datagram for the protocol specified in the
  378.       Protocol field.
  379.  
  380.       The maximum length for the Information field, including Padding,
  381.       is termed the Maximum Receive Unit (MRU), which defaults to 1500
  382.       octets.  By negotiation, consenting PPP implementations may use
  383.       other values for the MRU.
  384.  
  385.  
  386.  
  387.  
  388. Simpson                  expires in six months                  [Page 5]
  389. DRAFT                   Point-to-Point Protocol              August 1993
  390.  
  391.  
  392.    Padding
  393.  
  394.       On transmission, the Information field may be padded with an
  395.       arbitrary number of octets up to the MRU.  It is the
  396.       responsibility of each protocol to distinguish padding octets from
  397.       real information.
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443. Simpson                  expires in six months                  [Page 6]
  444. DRAFT                   Point-to-Point Protocol              August 1993
  445.  
  446.  
  447. 3.  PPP Link Operation
  448.  
  449. 3.1.  Overview
  450.  
  451.    In order to establish communications over a point-to-point link, each
  452.    end of the PPP link MUST first send LCP packets to configure and test
  453.    the data link.  After the link has been established, the peer MAY be
  454.    authenticated.  Then, PPP MUST send NCP packets to choose and
  455.    configure one or more network-layer protocols.  Once each of the
  456.    chosen network-layer protocols has been configured, datagrams from
  457.    each network-layer protocol can be sent over the link.
  458.  
  459.    The link will remain configured for communications until explicit LCP
  460.    or NCP packets close the link down, or until some external event
  461.    occurs (an inactivity timer expires or network administrator
  462.    intervention).
  463.  
  464.  
  465. 3.2.  Phase Diagram
  466.  
  467.    In the process of configuring, maintaining and terminating the
  468.    point-to-point link, the PPP link goes through several distinct
  469.    phases:
  470.  
  471.    +------+        +-----------+           +--------------+
  472.    |      | UP     |           | OPENED    |              | SUCCESS/NONE
  473.    | Dead |------->| Establish |---------->| Authenticate |--+
  474.    |      |        |           |           |              |  |
  475.    +------+        +-----------+           +--------------+  |
  476.       ^          FAIL |                   FAIL |             |
  477.       +<--------------+             +----------+             |
  478.       |                             |                        |
  479.       |            +-----------+    |           +---------+  |
  480.       |       DOWN |           |    |   CLOSING |         |  |
  481.       +------------| Terminate |<---+<----------| Network |<-+
  482.                    |           |                |         |
  483.                    +-----------+                +---------+
  484.  
  485.  
  486. 3.3.  Link Dead (physical-layer not ready)
  487.  
  488.    The link necessarily begins and ends with this phase.  When an
  489.    external event (such as carrier detection or network administrator
  490.    configuration) indicates that the physical-layer is ready to be used,
  491.    PPP will proceed to the Link Establishment phase.
  492.  
  493.    During this phase, the LCP automaton (described below) will be in the
  494.    Initial or Starting states.  The transition to the Link Establishment
  495.  
  496.  
  497.  
  498. Simpson                  expires in six months                  [Page 7]
  499. DRAFT                   Point-to-Point Protocol              August 1993
  500.  
  501.  
  502.    phase will signal an Up event to the automaton.
  503.  
  504.    Implementation Note:
  505.  
  506.       Typically, a link will return to this phase automatically after
  507.       the disconnection of a modem.  In the case of a hard-wired line,
  508.       this phase may be extremely short -- merely long enough to detect
  509.       the presence of the device.
  510.  
  511.  
  512. 3.4.  Link Establishment Phase
  513.  
  514.    The Link Control Protocol (LCP) is used to establish the connection
  515.    through an exchange of Configure packets.  This exchange is complete,
  516.    and the LCP Opened state entered, once a Configure-Ack packet
  517.    (described below) has been both sent and received.
  518.  
  519.    All Configuration Options are assumed to be at default values unless
  520.    altered by the configuration exchange.  See the section on LCP
  521.    Configuration Options for further discussion.
  522.  
  523.    It is important to note that only Configuration Options which are
  524.    independent of particular network-layer protocols are configured by
  525.    LCP.  Configuration of individual network-layer protocols is handled
  526.    by separate Network Control Protocols (NCPs) during the Network-Layer
  527.    Protocol phase.
  528.  
  529.    Any non-LCP packets received during this phase MUST be silently
  530.    discarded.
  531.  
  532.  
  533. 3.5.  Authentication Phase
  534.  
  535.    On some links it may be desirable to require a peer to authenticate
  536.    itself before allowing network-layer protocol packets to be
  537.    exchanged.
  538.  
  539.    By default, authentication is not mandatory.  If an implementation
  540.    desires that the peer authenticate with some specific authentication
  541.    protocol, then it MUST negotiate the use of that authentication
  542.    protocol during Link Establishment phase.
  543.  
  544.    Authentication SHOULD take place as soon as possible after link
  545.    establishment.  However, link quality determination MAY occur
  546.    concurrently.  An implementation MUST NOT allow the exchange of link
  547.    quality determination packets to delay authentication indefinitely.
  548.  
  549.    Advancement from the Authentication phase to the Network-Layer
  550.  
  551.  
  552.  
  553. Simpson                  expires in six months                  [Page 8]
  554. DRAFT                   Point-to-Point Protocol              August 1993
  555.  
  556.  
  557.    Protocol phase MUST NOT occur until authentication has completed,
  558.    using the negotiated authentication protocol.  If authentication
  559.    fails, PPP SHOULD proceed instead to the Link Termination phase.
  560.  
  561.    Any Network Control Protocol or network-layer protocol packets
  562.    received during this phase MUST be silently discarded.
  563.  
  564.  
  565. 3.6.  Network-Layer Protocol Phase
  566.  
  567.    Once PPP has finished the previous phases, each network-layer
  568.    protocol (such as IP, IPX, or AppleTalk) MUST be separately
  569.    configured by the appropriate Network Control Protocol (NCP).
  570.  
  571.    Each NCP MAY be Opened and Closed at any time.
  572.  
  573.    Implementation Note:
  574.  
  575.       Because an implementation may initially use a significant amount
  576.       of time for link quality determination, implementations SHOULD
  577.       avoid fixed timeouts when waiting for their peers to configure a
  578.       NCP.
  579.  
  580.    After a NCP has reached the Opened state, PPP will carry the
  581.    corresponding network-layer protocol packets.  Any network-layer
  582.    protocol packets received when the corresponding NCP is not in the
  583.    Opened state MUST be silently discarded.
  584.  
  585.    Implementation Note:
  586.  
  587.       There is an exception to the preceding paragraphs, due to the
  588.       availability of the LCP Protocol-Reject (described below).  While
  589.       LCP is in the Opened state, any protocol packet which is
  590.       unsupported by the implementation MUST be returned in a Protocol-
  591.       Reject.  Only protocols which are supported are silently
  592.       discarded.
  593.  
  594.    During this phase, link traffic consists of any possible combination
  595.    of LCP, NCP, and network-layer protocol packets.
  596.  
  597.  
  598. 3.7.  Link Termination Phase
  599.  
  600.    PPP can terminate the link at any time.  This might happen because of
  601.    the loss of carrier, authentication failure, link quality failure,
  602.    the expiration of an idle-period timer, or the administrative closing
  603.    of the link.
  604.  
  605.  
  606.  
  607.  
  608. Simpson                  expires in six months                  [Page 9]
  609. DRAFT                   Point-to-Point Protocol              August 1993
  610.  
  611.  
  612.    LCP is used to close the link through an exchange of Terminate
  613.    packets.  When the link is closing, PPP informs the network-layer
  614.    protocols so that they may take appropriate action.
  615.  
  616.    After the exchange of Terminate packets, the implementation SHOULD
  617.    signal the physical-layer to disconnect in order to enforce the
  618.    termination of the link, particularly in the case of an
  619.    authentication failure.  The sender of the Terminate-Request SHOULD
  620.    disconnect after receiving a Terminate-Ack, or after the Restart
  621.    counter expires.  The receiver of a Terminate-Request SHOULD wait for
  622.    the peer to disconnect, and MUST NOT disconnect until at least one
  623.    Restart time has passed after sending a Terminate-Ack.  PPP SHOULD
  624.    proceed to the Link Dead phase.
  625.  
  626.    Any non-LCP packets received during this phase MUST be silently
  627.    discarded.
  628.  
  629.    Implementation Note:
  630.  
  631.       The closing of the link by LCP is sufficient.  There is no need
  632.       for each NCP to send a flurry of Terminate packets.  Conversely,
  633.       the fact that one NCP has Closed is not sufficient reason to cause
  634.       the termination of the PPP link, even if that NCP was the only NCP
  635.       currently in the Opened state.
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663. Simpson                  expires in six months                 [Page 10]
  664. DRAFT                   Point-to-Point Protocol              August 1993
  665.  
  666.  
  667. 4.  The Option Negotiation Automaton
  668.  
  669.    The finite-state automaton is defined by events, actions and state
  670.    transitions.  Events include reception of external commands such as
  671.    Open and Close, expiration of the Restart timer, and reception of
  672.    packets from a peer.  Actions include the starting of the Restart
  673.    timer and transmission of packets to the peer.
  674.  
  675.    Some types of packets -- Configure-Naks and Configure-Rejects, or
  676.    Code-Rejects and Protocol-Rejects, or Echo-Requests, Echo-Replies and
  677.    Discard-Requests -- are not differentiated in the automaton
  678.    descriptions.  As will be described later, these packets do indeed
  679.    serve different functions.  However, they always cause the same
  680.    transitions.
  681.  
  682.    Events                                   Actions
  683.  
  684.    Up   = lower layer is Up                 tlu = This-Layer-Up
  685.    Down = lower layer is Down               tld = This-Layer-Down
  686.    Open = administrative Open               tls = This-Layer-Started
  687.    Close= administrative Close              tlf = This-Layer-Finished
  688.  
  689.    TO+  = Timeout with counter > 0          irc = Initialize-Restart-Counter
  690.    TO-  = Timeout with counter expired      zrc = Zero-Restart-Counter
  691.  
  692.    RCR+ = Receive-Configure-Request (Good)  scr = Send-Configure-Request
  693.    RCR- = Receive-Configure-Request (Bad)
  694.    RCA  = Receive-Configure-Ack             sca = Send-Configure-Ack
  695.    RCN  = Receive-Configure-Nak/Rej         scn = Send-Configure-Nak/Rej
  696.  
  697.    RTR  = Receive-Terminate-Request         str = Send-Terminate-Request
  698.    RTA  = Receive-Terminate-Ack             sta = Send-Terminate-Ack
  699.  
  700.    RUC  = Receive-Unknown-Code              scj = Send-Code-Reject
  701.    RXJ+ = Receive-Code-Reject (permitted)
  702.        or Receive-Protocol-Reject
  703.    RXJ- = Receive-Code-Reject (catastrophic)
  704.        or Receive-Protocol-Reject
  705.    RXR  = Receive-Echo-Request              ser = Send-Echo-Reply
  706.        or Receive-Echo-Reply
  707.        or Receive-Discard-Request
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718. Simpson                  expires in six months                 [Page 11]
  719. DRAFT                   Point-to-Point Protocol              August 1993
  720.  
  721.  
  722. 4.1.  State Diagram
  723.  
  724.    The simplified state diagram which follows describes the sequence of
  725.    events for reaching agreement on Configuration Options (opening the
  726.    PPP link) and for later termination of the link.
  727.  
  728.       This diagram is not a complete representation of the automaton.
  729.       Implementation MUST be done by consulting the actual state
  730.       transition table.
  731.  
  732.    Events are in upper case.  Actions are in lower case.  For these
  733.    purposes, the state machine is initially in the Closed state.  Once
  734.    the Opened state has been reached, both ends of the link have met the
  735.    requirement of having both sent and received a Configure-Ack packet.
  736.  
  737.                    RCR                    TO+
  738.                  +--sta-->+             +------->+
  739.                  |        |             |        |
  740.            +-------+      |   RTA +-------+      | Close +-------+
  741.            |       |<-----+<------|       |<-str-+<------|       |
  742.            |Closed |              |Closing|              |Opened |
  743.            |       | Open         |       |              |       |
  744.            |       |------+       |       |              |       |
  745.            +-------+      |       +-------+              +-------+
  746.                           |                                ^
  747.                           |                                |
  748.                           |         +-sca----------------->+
  749.                           |         |                      ^
  750.                   RCN,TO+ V    RCR+ |     RCR-         RCA |    RCN,TO+
  751.                  +------->+         |   +------->+         |   +--scr-->+
  752.                  |        |         |   |        |         |   |        |
  753.            +-------+      |   TO+ +-------+      |       +-------+      |
  754.            |       |<-scr-+<------|       |<-scn-+       |       |<-----+
  755.            | Req-  |              | Ack-  |              | Ack-  |
  756.            | Sent  | RCA          | Rcvd  |              | Sent  |
  757.     +-scn->|       |------------->|       |       +-sca->|       |
  758.     |      +-------+              +-------+       |      +-------+
  759.     |   RCR- |   | RCR+                           |   RCR+ |   | RCR-
  760.     |        |   +------------------------------->+<-------+   |
  761.     |        |                                                 |
  762.     +<-------+<------------------------------------------------+
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773. Simpson                  expires in six months                 [Page 12]
  774. DRAFT                   Point-to-Point Protocol              August 1993
  775.  
  776.  
  777. 4.2.  State Transition Table
  778.  
  779.    The complete state transition table follows.  States are indicated
  780.    horizontally, and events are read vertically.  State transitions and
  781.    actions are represented in the form action/new-state.  Multiple
  782.    actions are separated by commas, and may continue on succeeding lines
  783.    as space requires; multiple actions may be implemented in any
  784.    convenient order.  The state may be followed by a letter, which
  785.    indicates an explanatory footnote.  The dash ('-') indicates an
  786.    illegal transition.
  787.  
  788.       | State
  789.       |    0         1         2         3         4         5
  790. Events| Initial   Starting  Closed    Stopped   Closing   Stopping
  791. ------+-----------------------------------------------------------
  792.  Up   |    2     irc,scr/6     -         -         -         -
  793.  Down |    -         -         0       tls/1       0         1
  794.  Open |  tls/1       1     irc,scr/6     3r        5r        5r
  795.  Close|    0         0         2         2         4         4
  796.       |
  797.   TO+ |    -         -         -         -       str/4     str/5
  798.   TO- |    -         -         -         -       tlf/2     tlf/3
  799.       |
  800.  RCR+ |    -         -       sta/2 irc,scr,sca/8   4         5
  801.  RCR- |    -         -       sta/2 irc,scr,scn/6   4         5
  802.  RCA  |    -         -       sta/2     sta/3       4         5
  803.  RCN  |    -         -       sta/2     sta/3       4         5
  804.       |
  805.  RTR  |    -         -       sta/2     sta/3     sta/4     sta/5
  806.  RTA  |    -         -         2         3       tlf/2     tlf/3
  807.       |
  808.  RUC  |    -         -       scj/2     scj/3     scj/4     scj/5
  809.  RXJ+ |    -         -         2         3         4         5
  810.  RXJ- |    -         -       tlf/2     tlf/3     tlf/2     tlf/3
  811.       |
  812.  RXR  |    -         -         2         3         4         5
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828. Simpson                  expires in six months                 [Page 13]
  829. DRAFT                   Point-to-Point Protocol              August 1993
  830.  
  831.  
  832.       | State
  833.       |    6         7         8           9
  834. Events| Req-Sent  Ack-Rcvd  Ack-Sent    Opened
  835. ------+-----------------------------------------
  836.  Up   |    -         -         -           -
  837.  Down |    1         1         1         tld/1
  838.  Open |    6         7         8           9r
  839.  Close|irc,str/4 irc,str/4 irc,str/4 tld,irc,str/4
  840.       |
  841.   TO+ |  scr/6     scr/6     scr/8         -
  842.   TO- |  tlf/3p    tlf/3p    tlf/3p        -
  843.       |
  844.  RCR+ |  sca/8   sca,tlu/9   sca/8   tld,scr,sca/8
  845.  RCR- |  scn/6     scn/7     scn/6   tld,scr,scn/6
  846.  RCA  |  irc/7     scr/6x  irc,tlu/9   tld,scr/6x
  847.  RCN  |irc,scr/6   scr/6x  irc,scr/8   tld,scr/6x
  848.       |
  849.  RTR  |  sta/6     sta/6     sta/6   tld,zrc,sta/5
  850.  RTA  |    6         6         8       tld,scr/6
  851.       |
  852.  RUC  |  scj/6     scj/7     scj/8       scj/9
  853.  RXJ+ |    6         6         8           9
  854.  RXJ- |  tlf/3     tlf/3     tlf/3   tld,irc,str/5
  855.       |
  856.  RXR  |    6         7         8         ser/9
  857.  
  858.    The states in which the Restart timer is running are identifiable by
  859.    the presence of TO events.  Only the Send-Configure-Request, Send-
  860.    Terminate-Request and Zero-Restart-Counter actions start or re-start
  861.    the Restart timer.  The Restart timer is stopped when transitioning
  862.    from any state where the timer is running to a state where the timer
  863.    is not running.
  864.  
  865.    [p]   Passive option; see Stopped state discussion.
  866.  
  867.    [r]   Restart option; see Open event discussion.
  868.  
  869.    [x]   Crossed connection; see RCA event discussion.
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883. Simpson                  expires in six months                 [Page 14]
  884. DRAFT                   Point-to-Point Protocol              August 1993
  885.  
  886.  
  887. 4.3.  A Day in the Life
  888.  
  889.    Here is an example of how a typical implementation might use the
  890.    automaton to implement LCP in a dial-up environment:
  891.  
  892.    -  The Network Access Server is powered on (Initial state, Link Dead
  893.       phase).
  894.  
  895.    -  A configuration file indicates that a particular link is to be
  896.       used for PPP access (Open: tls/Starting).  The This-Layer-Started
  897.       event turns on DTR to a modem, readying it for accepting calls.
  898.  
  899.    -  An incoming call is answered.  The modem CD triggers configuration
  900.       negotiation (Up: irc,scr/Req-Sent, Link Establishment phase).
  901.  
  902.    -  A Configure-Request is received, which is acknowleged (RCR+:
  903.       sca/Ack-Sent).
  904.  
  905.    -  The Request is acknowleged (RCA: irc,tlu/Opened).  The This-
  906.       Layer-Up event starts authentication and quality monitoring
  907.       protocols (Authentication phase).
  908.  
  909.    -  When authentication and quality monitoring are satisfied, they
  910.       send an Up event to start the available NCPs (Network-Layer
  911.       Protocol phase).
  912.  
  913.    -  Later, the peer is finished, and closes the link.  A Terminate-
  914.       Request arrives (RTR: tld,zrc,sta/Stopping, Termination phase).
  915.       The This-Layer-Down action sends the Down event to any NCPs, while
  916.       the Terminate-Ack is sent.  The Zero-Restart-Counter action causes
  917.       the link to wait for the peer to process the Terminate-Ack, with
  918.       no retries.
  919.  
  920.    -  When the Restart Timer times out (TO-: tlf/Stopped), the This-
  921.       Layer-Finished action signals the modem to hang up by dropping
  922.       DTR.
  923.  
  924.    -  When the CD from the modem drops (Down: tls/Starting), the This-
  925.       Layer-Started action raises DTR again, readying it for the next
  926.       call (returning to the Link Dead phase).
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938. Simpson                  expires in six months                 [Page 15]
  939. DRAFT                   Point-to-Point Protocol              August 1993
  940.  
  941.  
  942. 4.4.  States
  943.  
  944.    Following is a more detailed description of each automaton state.
  945.  
  946.    Initial
  947.  
  948.       In the Initial state, the lower layer is unavailable (Down), and
  949.       no Open has occurred.  The Restart timer is not running in the
  950.       Initial state.
  951.  
  952.    Starting
  953.  
  954.       The Starting state is the Open counterpart to the Initial state.
  955.       An administrative Open has been initiated, but the lower layer is
  956.       still unavailable (Down).  The Restart timer is not running in the
  957.       Starting state.
  958.  
  959.       When the lower layer becomes available (Up), a Configure-Request
  960.       is sent.
  961.  
  962.    Closed
  963.  
  964.       In the Closed state, the link is available (Up), but no Open has
  965.       occurred.  The Restart timer is not running in the Closed state.
  966.  
  967.       Upon reception of Configure-Request packets, a Terminate-Ack is
  968.       sent.  Terminate-Acks are silently discarded to avoid creating a
  969.       loop.
  970.  
  971.    Stopped
  972.  
  973.       The Stopped state is the Open counterpart to the Closed state.  It
  974.       is entered when the automaton is waiting for a Down event after
  975.       the This-Layer-Finished action, or after sending a Terminate-Ack.
  976.       The Restart timer is not running in the Stopped state.
  977.  
  978.       Upon reception of Configure-Request packets, an appropriate
  979.       response is sent.  Upon reception of other packets, a Terminate-
  980.       Ack is sent.  Terminate-Acks are silently discarded to avoid
  981.       creating a loop.
  982.  
  983.       Rationale:
  984.  
  985.          The Stopped state is a junction state for link termination,
  986.          link configuration failure, and other automaton failure modes.
  987.          These potentially separate states have been combined.
  988.  
  989.          There is a race condition between the Down event response (from
  990.  
  991.  
  992.  
  993. Simpson                  expires in six months                 [Page 16]
  994. DRAFT                   Point-to-Point Protocol              August 1993
  995.  
  996.  
  997.          the This-Layer-Finished action) and the Receive-Configure-
  998.          Request event.  When a Configure-Request arrives before the
  999.          Down event, the Down event will supercede by returning the
  1000.          automaton to the Starting state.  This prevents attack by
  1001.          repetition.
  1002.  
  1003.       Implementation Option:
  1004.  
  1005.          After the peer fails to respond to Configure-Requests, an
  1006.          implementation MAY wait passively for the peer to send
  1007.          Configure-Requests.  In this case, the This-Layer-Finished
  1008.          action is not used for the TO- event in states Req-Sent, Ack-
  1009.          Rcvd and Ack-Sent.
  1010.  
  1011.          This option is useful for dedicated circuits, or circuits which
  1012.          have no status signals available, but SHOULD NOT be used for
  1013.          switched circuits.
  1014.  
  1015.    Closing
  1016.  
  1017.       In the Closing state, an attempt is made to terminate the
  1018.       connection.  A Terminate-Request has been sent and the Restart
  1019.       timer is running, but a Terminate-Ack has not yet been received.
  1020.  
  1021.       Upon reception of a Terminate-Ack, the Closed state is entered.
  1022.       Upon the expiration of the Restart timer, a new Terminate-Request
  1023.       is transmitted and the Restart timer is restarted.  After the
  1024.       Restart timer has expired Max-Terminate times, this action may be
  1025.       skipped, and the Closed state may be entered.
  1026.  
  1027.    Stopping
  1028.  
  1029.       The Stopping state is the Open counterpart to the Closing state.
  1030.       A Terminate-Request has been sent and the Restart timer is
  1031.       running, but a Terminate-Ack has not yet been received.
  1032.  
  1033.       Rationale:
  1034.  
  1035.          The Stopping state provides a well defined opportunity to
  1036.          terminate a link before allowing new traffic.  After the link
  1037.          has terminated, a new configuration may occur via the Stopped
  1038.          or Starting states.
  1039.  
  1040.    Request-Sent
  1041.  
  1042.       In the Request-Sent state an attempt is made to configure the
  1043.       connection.  A Configure-Request has been sent and the Restart
  1044.       timer is running, but a Configure-Ack has not yet been received
  1045.  
  1046.  
  1047.  
  1048. Simpson                  expires in six months                 [Page 17]
  1049. DRAFT                   Point-to-Point Protocol              August 1993
  1050.  
  1051.  
  1052.       nor has one been sent.
  1053.  
  1054.    Ack-Received
  1055.  
  1056.       In the Ack-Received state, a Configure-Request has been sent and a
  1057.       Configure-Ack has been received.  The Restart timer is still
  1058.       running since a Configure-Ack has not yet been sent.
  1059.  
  1060.    Ack-Sent
  1061.  
  1062.       In the Ack-Sent state, a Configure-Request and a Configure-Ack
  1063.       have both been sent but a Configure-Ack has not yet been received.
  1064.       The Restart timer is always running in the Ack-Sent state.
  1065.  
  1066.    Opened
  1067.  
  1068.       In the Opened state, a Configure-Ack has been both sent and
  1069.       received.  The Restart timer is not running in the Opened state.
  1070.  
  1071.       When entering the Opened state, the implementation SHOULD signal
  1072.       the upper layers that it is now Up.  Conversely, when leaving the
  1073.       Opened state, the implementation SHOULD signal the upper layers
  1074.       that it is now Down.
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103. Simpson                  expires in six months                 [Page 18]
  1104. DRAFT                   Point-to-Point Protocol              August 1993
  1105.  
  1106.  
  1107. 4.5.  Events
  1108.  
  1109.    Transitions and actions in the automaton are caused by events.
  1110.  
  1111.    Up
  1112.  
  1113.       The Up event occurs when a lower layer indicates that it is ready
  1114.       to carry packets.
  1115.  
  1116.       Typically, this event is used by a modem handling or calling
  1117.       process, or by some other coupling of the PPP link to the physical
  1118.       media, to signal LCP that the link is entering Link Establishment
  1119.       phase.
  1120.  
  1121.       It also can be used by LCP to signal each NCP that the link is
  1122.       entering Network-Layer Protocol phase.  That is, the This-Layer-Up
  1123.       action from LCP triggers the Up event in the NCP.
  1124.  
  1125.    Down
  1126.  
  1127.       The Down event occurs when a lower layer indicates that it is no
  1128.       longer ready to carry packets.
  1129.  
  1130.       Typically, this event is used by a modem handling or calling
  1131.       process, or by some other coupling of the PPP link to the physical
  1132.       media, to signal LCP that the link is entering Link Dead phase.
  1133.  
  1134.       It also can be used by LCP to signal each NCP that the link is
  1135.       leaving Network-Layer Protocol phase.  That is, the This-Layer-
  1136.       Down action from LCP triggers the Down event in the NCP.
  1137.  
  1138.    Open
  1139.  
  1140.       The Open event indicates that the link is administratively
  1141.       available for traffic; that is, the network administrator (human
  1142.       or program) has indicated that the link is allowed to be Opened.
  1143.       When this event occurs, and the link is not in the Opened state,
  1144.       the automaton attempts to send configuration packets to the peer.
  1145.  
  1146.       If the automaton is not able to begin configuration (the lower
  1147.       layer is Down, or a previous Close event has not completed), the
  1148.       establishment of the link is automatically delayed.
  1149.  
  1150.       When a Terminate-Request is received, or other events occur which
  1151.       cause the link to become unavailable, the automaton will progress
  1152.       to a state where the link is ready to re-open.  No additional
  1153.       administrative intervention is necessary.
  1154.  
  1155.  
  1156.  
  1157.  
  1158. Simpson                  expires in six months                 [Page 19]
  1159. DRAFT                   Point-to-Point Protocol              August 1993
  1160.  
  1161.  
  1162.       Implementation Option:
  1163.  
  1164.          Experience has shown that users will execute an additional Open
  1165.          command when they want to renegotiate the link.  This might
  1166.          indicate that new values are to be negotiated.
  1167.  
  1168.          Since this is not the meaning of the Open event, it is
  1169.          suggested that when an Open user command is executed in the
  1170.          Opened, Closing, Stopping, or Stopped states, the
  1171.          implementation issue a Down event, immediately followed by an
  1172.          Up event.  This will cause the renegotiation of the link,
  1173.          without any harmful side effects.
  1174.  
  1175.    Close
  1176.  
  1177.       The Close event indicates that the link is not available for
  1178.       traffic; that is, the network administrator (human or program) has
  1179.       indicated that the link is not allowed to be Opened.  When this
  1180.       event occurs, and the link is not in the Closed state, the
  1181.       automaton attempts to terminate the connection.  Futher attempts
  1182.       to re-configure the link are denied until a new Open event occurs.
  1183.  
  1184.       Implementation Note:
  1185.  
  1186.          When authentication fails, the link SHOULD be terminated, to
  1187.          prevent attack by repetition and denial of service to other
  1188.          users.  Since the link is administratively available (by
  1189.          definition), this can be accomplished by simulating a Close
  1190.          event to the LCP, immediately followed by an Open event.
  1191.  
  1192.          The Close followed by an Open will cause an orderly termination
  1193.          of the link, by progressing from the Closing to the Stopping
  1194.          state, and the This-Layer-Finished action can disconnect the
  1195.          link.  The automaton waits in the Stopped or Starting states
  1196.          for the next connection attempt.
  1197.  
  1198.    Timeout (TO+,TO-)
  1199.  
  1200.       This event indicates the expiration of the Restart timer.  The
  1201.       Restart timer is used to time responses to Configure-Request and
  1202.       Terminate-Request packets.
  1203.  
  1204.       The TO+ event indicates that the Restart counter continues to be
  1205.       greater than zero, which triggers the corresponding Configure-
  1206.       Request or Terminate-Request packet to be retransmitted.
  1207.  
  1208.       The TO- event indicates that the Restart counter is not greater
  1209.       than zero, and no more packets need to be retransmitted.
  1210.  
  1211.  
  1212.  
  1213. Simpson                  expires in six months                 [Page 20]
  1214. DRAFT                   Point-to-Point Protocol              August 1993
  1215.  
  1216.  
  1217.    Receive-Configure-Request (RCR+,RCR-)
  1218.  
  1219.       This event occurs when a Configure-Request packet is received from
  1220.       the peer.  The Configure-Request packet indicates the desire to
  1221.       open a connection and may specify Configuration Options.  The
  1222.       Configure-Request packet is more fully described in a later
  1223.       section.
  1224.  
  1225.       The RCR+ event indicates that the Configure-Request was
  1226.       acceptable, and triggers the transmission of a corresponding
  1227.       Configure-Ack.
  1228.  
  1229.       The RCR- event indicates that the Configure-Request was
  1230.       unacceptable, and triggers the transmission of a corresponding
  1231.       Configure-Nak or Configure-Reject.
  1232.  
  1233.       Implementation Note:
  1234.  
  1235.          These events may occur on a connection which is already in the
  1236.          Opened state.  The implementation MUST be prepared to
  1237.          immediately renegotiate the Configuration Options.
  1238.  
  1239.    Receive-Configure-Ack (RCA)
  1240.  
  1241.       The Receive-Configure-Ack event occurs when a valid Configure-Ack
  1242.       packet is received from the peer.  The Configure-Ack packet is a
  1243.       positive response to a Configure-Request packet.  An out of
  1244.       sequence or otherwise invalid packet is silently discarded.
  1245.  
  1246.       Implementation Note:
  1247.  
  1248.          Since the correct packet has already been received before
  1249.          reaching the Ack-Rcvd or Opened states, it is extremely
  1250.          unlikely that another such packet will arrive.  As specified,
  1251.          all invalid Ack/Nak/Rej packets are silently discarded, and do
  1252.          not affect the transitions of the automaton.
  1253.  
  1254.          However, it is not impossible that a correctly formed packet
  1255.          will arrive through a coincidentally-timed cross-connection.
  1256.          It is more likely to be the result of an implementation error.
  1257.          At the very least, this occurance SHOULD be logged.
  1258.  
  1259.    Receive-Configure-Nak/Rej (RCN)
  1260.  
  1261.       This event occurs when a valid Configure-Nak or Configure-Reject
  1262.       packet is received from the peer.  The Configure-Nak and
  1263.       Configure-Reject packets are negative responses to a Configure-
  1264.       Request packet.  An out of sequence or otherwise invalid packet is
  1265.  
  1266.  
  1267.  
  1268. Simpson                  expires in six months                 [Page 21]
  1269. DRAFT                   Point-to-Point Protocol              August 1993
  1270.  
  1271.  
  1272.       silently discarded.
  1273.  
  1274.       Implementation Note:
  1275.  
  1276.          Although the Configure-Nak and Configure-Reject cause the same
  1277.          state transition in the automaton, these packets have
  1278.          significantly different effects on the Configuration Options
  1279.          sent in the resulting Configure-Request packet.
  1280.  
  1281.    Receive-Terminate-Request (RTR)
  1282.  
  1283.       The Receive-Terminate-Request event occurs when a Terminate-
  1284.       Request packet is received.  The Terminate-Request packet
  1285.       indicates the desire of the peer to close the connection.
  1286.  
  1287.       Implementation Note:
  1288.  
  1289.          This event is not identical to the Close event (see above), and
  1290.          does not override the Open commands of the local network
  1291.          administrator.  The implementation MUST be prepared to receive
  1292.          a new Configure-Request without network administrator
  1293.          intervention.
  1294.  
  1295.    Receive-Terminate-Ack (RTA)
  1296.  
  1297.       The Receive-Terminate-Ack event occurs when a Terminate-Ack packet
  1298.       is received from the peer.  The Terminate-Ack packet is usually a
  1299.       response to a Terminate-Request packet.  The Terminate-Ack packet
  1300.       may also indicate that the peer is in Closed or Stopped states,
  1301.       and serves to re-synchronize the link configuration.
  1302.  
  1303.    Receive-Unknown-Code (RUC)
  1304.  
  1305.       The Receive-Unknown-Code event occurs when an un-interpretable
  1306.       packet is received from the peer.  A Code-Reject packet is sent in
  1307.       response.
  1308.  
  1309.    Receive-Code-Reject, Receive-Protocol-Reject (RXJ+,RXJ-)
  1310.  
  1311.       This event occurs when a Code-Reject or a Protocol-Reject packet
  1312.       is received from the peer.
  1313.  
  1314.       The RXJ+ event arises when the rejected value is acceptable, such
  1315.       as a Code-Reject of an extended code, or a Protocol-Reject of a
  1316.       NCP.  These are within the scope of normal operation.  The
  1317.       implementation MUST stop sending the offending packet type.
  1318.  
  1319.       The RXJ- event arises when the rejected value is catastrophic,
  1320.  
  1321.  
  1322.  
  1323. Simpson                  expires in six months                 [Page 22]
  1324. DRAFT                   Point-to-Point Protocol              August 1993
  1325.  
  1326.  
  1327.       such as a Code-Reject of Configure-Request, or a Protocol-Reject
  1328.       of LCP!  This event communicates an unrecoverable error that
  1329.       terminates the connection.
  1330.  
  1331.    Receive-Echo-Request, Receive-Echo-Reply, Receive-Discard-Request
  1332.    (RXR)
  1333.  
  1334.       This event occurs when an Echo-Request, Echo-Reply or Discard-
  1335.       Request packet is received from the peer.  The Echo-Reply packet
  1336.       is a response to a Echo-Request packet.  There is no reply to an
  1337.       Echo-Reply or Discard-Request packet.
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378. Simpson                  expires in six months                 [Page 23]
  1379. DRAFT                   Point-to-Point Protocol              August 1993
  1380.  
  1381.  
  1382. 4.6.  Actions
  1383.  
  1384.    Actions in the automaton are caused by events and typically indicate
  1385.    the transmission of packets and/or the starting or stopping of the
  1386.    Restart timer.
  1387.  
  1388.    Illegal-Event (-)
  1389.  
  1390.       This indicates an event that cannot occur in a properly
  1391.       implemented automaton.  The implementation has an internal error,
  1392.       which should be reported and logged.  No transition is taken, and
  1393.       the implementation SHOULD NOT reset or freeze.
  1394.  
  1395.    This-Layer-Up (tlu)
  1396.  
  1397.       This action indicates to the upper layers that the automaton is
  1398.       entering the Opened state.
  1399.  
  1400.       Typically, this action is used by the LCP to signal the Up event
  1401.       to a NCP, Authentication Protocol, or Link Quality Protocol, or
  1402.       MAY be used by a NCP to indicate that the link is available for
  1403.       its network layer traffic.
  1404.  
  1405.    This-Layer-Down (tld)
  1406.  
  1407.       This action indicates to the upper layers that the automaton is
  1408.       leaving the Opened state.
  1409.  
  1410.       Typically, this action is used by the LCP to signal the Down event
  1411.       to a NCP, Authentication Protocol, or Link Quality Protocol, or
  1412.       MAY be used by a NCP to indicate that the link is no longer
  1413.       available for its network layer traffic.
  1414.  
  1415.    This-Layer-Started (tls)
  1416.  
  1417.       This action indicates to the lower layers that the automaton is
  1418.       entering the Starting state, and the lower layer is needed for the
  1419.       link.  The lower layer SHOULD respond with an Up event when the
  1420.       lower layer is available.
  1421.  
  1422.       This action is highly implementation dependent.
  1423.  
  1424.    This-Layer-Finished (tlf)
  1425.  
  1426.       This action indicates to the lower layers that the automaton is
  1427.       entering the Stopped or Closed states, and the lower layer is no
  1428.       longer needed for the link.  The lower layer SHOULD respond with a
  1429.       Down event when the lower layer has terminated.
  1430.  
  1431.  
  1432.  
  1433. Simpson                  expires in six months                 [Page 24]
  1434. DRAFT                   Point-to-Point Protocol              August 1993
  1435.  
  1436.  
  1437.       Typically, this action MAY be used by the LCP to advance to the
  1438.       Link Dead phase, or MAY be used by a NCP to indicate to the LCP
  1439.       that the link may terminate when there are no other NCPs open.
  1440.  
  1441.       This action is highly implementation dependent.
  1442.  
  1443.    Initialize-Restart-Counter (irc)
  1444.  
  1445.       This action sets the Restart counter to the appropriate value
  1446.       (Max-Terminate or Max-Configure).  The counter is decremented for
  1447.       each transmission, including the first.
  1448.  
  1449.    Zero-Restart-Counter (zrc)
  1450.  
  1451.       This action sets the Restart counter to zero.
  1452.  
  1453.       Implementation Note:
  1454.  
  1455.          This action enables the FSA to pause before proceeding to the
  1456.          desired final state, allowing traffic to be processed by the
  1457.          peer.  In addition to zeroing the Restart counter, the
  1458.          implementation MUST set the timeout period to an appropriate
  1459.          value.
  1460.  
  1461.    Send-Configure-Request (scr)
  1462.  
  1463.       The Send-Configure-Request action transmits a Configure-Request
  1464.       packet.  This indicates the desire to open a connection with a
  1465.       specified set of Configuration Options.  The Restart timer is
  1466.       started when the Configure-Request packet is transmitted, to guard
  1467.       against packet loss.  The Restart counter is decremented each time
  1468.       a Configure-Request is sent.
  1469.  
  1470.    Send-Configure-Ack (sca)
  1471.  
  1472.       The Send-Configure-Ack action transmits a Configure-Ack packet.
  1473.       This acknowledges the reception of a Configure-Request packet with
  1474.       an acceptable set of Configuration Options.
  1475.  
  1476.    Send-Configure-Nak (scn)
  1477.  
  1478.       The Send-Configure-Nak action transmits a Configure-Nak or
  1479.       Configure-Reject packet, as appropriate.  This negative response
  1480.       reports the reception of a Configure-Request packet with an
  1481.       unacceptable set of Configuration Options.  Configure-Nak packets
  1482.       are used to refuse a Configuration Option value, and to suggest a
  1483.       new, acceptable value.  Configure-Reject packets are used to
  1484.       refuse all negotiation about a Configuration Option, typically
  1485.  
  1486.  
  1487.  
  1488. Simpson                  expires in six months                 [Page 25]
  1489. DRAFT                   Point-to-Point Protocol              August 1993
  1490.  
  1491.  
  1492.       because it is not recognized or implemented.  The use of
  1493.       Configure-Nak versus Configure-Reject is more fully described in
  1494.       the section on LCP Packet Formats.
  1495.  
  1496.    Send-Terminate-Request (str)
  1497.  
  1498.       The Send-Terminate-Request action transmits a Terminate-Request
  1499.       packet.  This indicates the desire to close a connection.  The
  1500.       Restart timer is started when the Terminate-Request packet is
  1501.       transmitted, to guard against packet loss.  The Restart counter is
  1502.       decremented each time a Terminate-Request is sent.
  1503.  
  1504.    Send-Terminate-Ack (sta)
  1505.  
  1506.       The Send-Terminate-Ack action transmits a Terminate-Ack packet.
  1507.       This acknowledges the reception of a Terminate-Request packet or
  1508.       otherwise serves to synchronize the state machines.
  1509.  
  1510.    Send-Code-Reject (scj)
  1511.  
  1512.       The Send-Code-Reject action transmits a Code-Reject packet.  This
  1513.       indicates the reception of an unknown type of packet.
  1514.  
  1515.    Send-Echo-Reply (ser)
  1516.  
  1517.       The Send-Echo-Reply action transmits an Echo-Reply packet.  This
  1518.       acknowledges the reception of an Echo-Request packet.
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543. Simpson                  expires in six months                 [Page 26]
  1544. DRAFT                   Point-to-Point Protocol              August 1993
  1545.  
  1546.  
  1547. 4.7.  Loop Avoidance
  1548.  
  1549.    The protocol makes a reasonable attempt at avoiding Configuration
  1550.    Option negotiation loops.  However, the protocol does NOT guarantee
  1551.    that loops will not happen.  As with any negotiation, it is possible
  1552.    to configure two PPP implementations with conflicting policies that
  1553.    will never converge.  It is also possible to configure policies which
  1554.    do converge, but which take significant time to do so.  Implementors
  1555.    should keep this in mind and SHOULD implement loop detection
  1556.    mechanisms or higher level timeouts.
  1557.  
  1558.  
  1559. 4.8.  Counters and Timers
  1560.  
  1561. Restart Timer
  1562.  
  1563.    There is one special timer used by the automaton.  The Restart timer
  1564.    is used to time transmissions of Configure-Request and Terminate-
  1565.    Request packets.  Expiration of the Restart timer causes a Timeout
  1566.    event, and retransmission of the corresponding Configure-Request or
  1567.    Terminate-Request packet.  The Restart timer MUST be configurable,
  1568.    but SHOULD default to three (3) seconds.
  1569.  
  1570.    Implementation Note:
  1571.  
  1572.       The Restart timer SHOULD be based on the speed of the link.  The
  1573.       default value is designed for low speed (19,200 bps or less), high
  1574.       switching latency links (typical telephone lines).  Higher speed
  1575.       links, or links with low switching latency, SHOULD have
  1576.       correspondingly faster retransmission times.
  1577.  
  1578. Max-Terminate
  1579.  
  1580.    There is one required restart counter for Terminate-Requests.  Max-
  1581.    Terminate indicates the number of Terminate-Request packets sent
  1582.    without receiving a Terminate-Ack before assuming that the peer is
  1583.    unable to respond.  Max-Terminate MUST be configurable, but SHOULD
  1584.    default to two (2) transmissions.
  1585.  
  1586. Max-Configure
  1587.  
  1588.    A similar counter is recommended for Configure-Requests.  Max-
  1589.    Configure indicates the number of Configure-Request packets sent
  1590.    without receiving a valid Configure-Ack, Configure-Nak or Configure-
  1591.    Reject before assuming that the peer is unable to respond.  Max-
  1592.    Configure MUST be configurable, but SHOULD default to ten (10)
  1593.    transmissions.
  1594.  
  1595.  
  1596.  
  1597.  
  1598. Simpson                  expires in six months                 [Page 27]
  1599. DRAFT                   Point-to-Point Protocol              August 1993
  1600.  
  1601.  
  1602. Max-Failure
  1603.  
  1604.    A related counter is recommended for Configure-Nak.  Max-Failure
  1605.    indicates the number of Configure-Nak packets sent without sending a
  1606.    Configure-Ack before assuming that configuration is not converging.
  1607.    Any further Configure-Nak packets are converted to Configure-Reject
  1608.    packets.  Max-Failure MUST be configurable, but SHOULD default to ten
  1609.    (10) transmissions.
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653. Simpson                  expires in six months                 [Page 28]
  1654. DRAFT                   Point-to-Point Protocol              August 1993
  1655.  
  1656.  
  1657. 5.  LCP Packet Formats
  1658.  
  1659.    There are three classes of LCP packets:
  1660.  
  1661.       1. Link Configuration packets used to establish and configure a
  1662.          link (Configure-Request, Configure-Ack, Configure-Nak and
  1663.          Configure-Reject).
  1664.  
  1665.       2. Link Termination packets used to terminate a link (Terminate-
  1666.          Request and Terminate-Ack).
  1667.  
  1668.       3. Link Maintenance packets used to manage and debug a link
  1669.          (Code-Reject, Protocol-Reject, Echo-Request, Echo-Reply, and
  1670.          Discard-Request).
  1671.  
  1672.    This document describes Version 1 of the Link Control Protocol.  In
  1673.    the interest of simplicity, there is no version field in the LCP
  1674.    packet.  If a new version of LCP is necessary in the future, the
  1675.    intention is that a new PPP Protocol field value will be used to
  1676.    differentiate Version 1 LCP from all other versions.  A correctly
  1677.    functioning Version 1 LCP implementation will always respond to
  1678.    unknown Protocols (including other versions) with an easily
  1679.    recognizable Version 1 packet, thus providing a deterministic
  1680.    fallback mechanism for implementations of other versions.
  1681.  
  1682.    Regardless of which Configuration Options are enabled, all LCP Link
  1683.    Configuration, Link Termination, and Code-Reject packets (codes 1
  1684.    through 7) are always sent as if no Configuration Options were
  1685.    enabled.  This ensures that such LCP packets are always recognizable
  1686.    even when one end of the link mistakenly believes the link to be
  1687.    open.
  1688.  
  1689.    Implementation Note:
  1690.  
  1691.       In particular, the Async-Control-Character-Map (ACCM) default for
  1692.       the type of link is used, and no address, control, or protocol
  1693.       field compression is allowed.
  1694.  
  1695.    Exactly one Link Control Protocol packet is encapsulated in the
  1696.    Information field of a PPP Data Link Layer frame where the Protocol
  1697.    field indicates type hex c021 (Link Control Protocol).
  1698.  
  1699.    A summary of the Link Control Protocol packet format is shown below.
  1700.    The fields are transmitted from left to right.
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708. Simpson                  expires in six months                 [Page 29]
  1709. DRAFT                   Point-to-Point Protocol              August 1993
  1710.  
  1711.  
  1712.  
  1713.     0                   1                   2                   3
  1714.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1715.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1716.    |     Code      |  Identifier   |            Length             |
  1717.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1718.    |    Data ...
  1719.    +-+-+-+-+
  1720.  
  1721.  
  1722.    Code
  1723.  
  1724.       The Code field is one octet and identifies the kind of LCP packet.
  1725.       When a packet is received with an invalid Code field, a Code-
  1726.       Reject packet is transmitted.
  1727.  
  1728.       Up-to-date values of the LCP Code field are specified in the most
  1729.       recent "Assigned Numbers" RFC [2].  This specification concerns
  1730.       the following values:
  1731.  
  1732.          1       Configure-Request
  1733.          2       Configure-Ack
  1734.          3       Configure-Nak
  1735.          4       Configure-Reject
  1736.          5       Terminate-Request
  1737.          6       Terminate-Ack
  1738.          7       Code-Reject
  1739.          8       Protocol-Reject
  1740.          9       Echo-Request
  1741.          10      Echo-Reply
  1742.          11      Discard-Request
  1743.  
  1744.  
  1745.    Identifier
  1746.  
  1747.       The Identifier field is one octet and aids in matching requests
  1748.       and replies.  When a packet is received with an invalid Identifier
  1749.       field, the packet is silently discarded.
  1750.  
  1751.    Length
  1752.  
  1753.       The Length field is two octets and indicates the length of the LCP
  1754.       packet including the Code, Identifier, Length and Data fields.
  1755.       Octets outside the range of the Length field are treated as
  1756.       padding and are ignored on reception.  When a packet is received
  1757.       with an invalid Length field, the packet is silently discarded.
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763. Simpson                  expires in six months                 [Page 30]
  1764. DRAFT                   Point-to-Point Protocol              August 1993
  1765.  
  1766.  
  1767.    Data
  1768.  
  1769.       The Data field is zero or more octets as indicated by the Length
  1770.       field.  The format of the Data field is determined by the Code
  1771.       field.
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818. Simpson                  expires in six months                 [Page 31]
  1819. DRAFT                   Point-to-Point Protocol              August 1993
  1820.  
  1821.  
  1822. 5.1.  Configure-Request
  1823.  
  1824.    Description
  1825.  
  1826.       An implementation wishing to open a connection MUST transmit a LCP
  1827.       packet with the Code field set to 1 (Configure-Request), and the
  1828.       Options field filled with any desired changes to the link
  1829.       defaults.  Configuration Options SHOULD NOT be included with
  1830.       default values.
  1831.  
  1832.       Upon reception of a Configure-Request, an appropriate reply MUST
  1833.       be transmitted.
  1834.  
  1835.    A summary of the Configure-Request packet format is shown below.  The
  1836.    fields are transmitted from left to right.
  1837.  
  1838.     0                   1                   2                   3
  1839.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1840.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1841.    |     Code      |  Identifier   |            Length             |
  1842.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1843.    | Options ...
  1844.    +-+-+-+-+
  1845.  
  1846.  
  1847.    Code
  1848.  
  1849.       1 for Configure-Request.
  1850.  
  1851.    Identifier
  1852.  
  1853.       The Identifier field SHOULD be changed on each transmission.  On
  1854.       reception, the Identifier field is copied into the Identifier
  1855.       field of the appropriate reply packet.
  1856.  
  1857.    Options
  1858.  
  1859.       The options field is variable in length and contains the list of
  1860.       zero or more Configuration Options that the sender desires to
  1861.       negotiate.  All Configuration Options are always negotiated
  1862.       simultaneously.  The format of Configuration Options is further
  1863.       described in a later section.
  1864.  
  1865.  
  1866.  
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873. Simpson                  expires in six months                 [Page 32]
  1874. DRAFT                   Point-to-Point Protocol              August 1993
  1875.  
  1876.  
  1877. 5.2.  Configure-Ack
  1878.  
  1879.    Description
  1880.  
  1881.       If every Configuration Option received in a Configure-Request is
  1882.       recognizable and all values are acceptable, then the
  1883.       implementation MUST transmit a LCP packet with the Code field set
  1884.       to 2 (Configure-Ack), the Identifier field copied from the
  1885.       received Configure-Request, and the Options field copied from the
  1886.       received Configure-Request.  The acknowledged Configuration
  1887.       Options MUST NOT be reordered or modified in any way.
  1888.  
  1889.       On reception of a Configure-Ack, the Identifier field MUST match
  1890.       that of the last transmitted Configure-Request.  Additionally, the
  1891.       Configuration Options in a Configure-Ack MUST exactly match those
  1892.       of the last transmitted Configure-Request.  Invalid packets are
  1893.       silently discarded.
  1894.  
  1895.    A summary of the Configure-Ack packet format is shown below.  The
  1896.    fields are transmitted from left to right.
  1897.  
  1898.     0                   1                   2                   3
  1899.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1900.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1901.    |     Code      |  Identifier   |            Length             |
  1902.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1903.    | Options ...
  1904.    +-+-+-+-+
  1905.  
  1906.  
  1907.    Code
  1908.  
  1909.       2 for Configure-Ack.
  1910.  
  1911.    Identifier
  1912.  
  1913.       The Identifier field is a copy of the Identifier field of the
  1914.       Configure-Request which caused this Configure-Ack.
  1915.  
  1916.    Options
  1917.  
  1918.       The Options field is variable in length and contains the list of
  1919.       zero or more Configuration Options that the sender is
  1920.       acknowledging.  All Configuration Options are always acknowledged
  1921.       simultaneously.
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928. Simpson                  expires in six months                 [Page 33]
  1929. DRAFT                   Point-to-Point Protocol              August 1993
  1930.  
  1931.  
  1932. 5.3.  Configure-Nak
  1933.  
  1934.    Description
  1935.  
  1936.       If every element of the received Configuration Options is
  1937.       recognizable but some values are not acceptable, then the
  1938.       implementation MUST transmit a LCP packet with the Code field set
  1939.       to 3 (Configure-Nak), the Identifier field copied from the
  1940.       received Configure-Request, and the Options field filled with only
  1941.       the unacceptable Configuration Options from the Configure-Request.
  1942.       All acceptable Configuration Options are filtered out of the
  1943.       Configure-Nak, but otherwise the Configuration Options from the
  1944.       Configure-Request MUST NOT be reordered.
  1945.  
  1946.       Options which have no value fields (boolean options) MUST use the
  1947.       Configure-Reject reply instead.
  1948.  
  1949.       Each Configuration Option which is allowed only a single instance
  1950.       MUST be modified to a value acceptable to the Configure-Nak
  1951.       sender.  The default value MAY be used, when this differs from the
  1952.       requested value.
  1953.  
  1954.       When a particular type of Configuration Option can be listed more
  1955.       than once with different values, the Configure-Nak MUST include a
  1956.       list of all values for that option which are acceptable to the
  1957.       Configure-Nak sender.  This includes acceptable values that were
  1958.       present in the Configure-Request.
  1959.  
  1960.       Finally, an implementation may be configured to request the
  1961.       negotiation of a specific Configuration Option.  If that option is
  1962.       not listed, then that option MAY be appended to the list of Nak'd
  1963.       Configuration Options in order to prompt the peer to include that
  1964.       option in its next Configure-Request packet.  Any value fields for
  1965.       the option MUST indicate values acceptable to the Configure-Nak
  1966.       sender.
  1967.  
  1968.       On reception of a Configure-Nak, the Identifier field MUST match
  1969.       that of the last transmitted Configure-Request.  Invalid packets
  1970.       are silently discarded.
  1971.  
  1972.       Reception of a valid Configure-Nak indicates that a new
  1973.       Configure-Request MAY be sent with the Configuration Options
  1974.       modified as specified in the Configure-Nak.  When multiple
  1975.       instances of a Configuration Option are present, the peer SHOULD
  1976.       select a single value to include in its next Configure-Request
  1977.       packet.
  1978.  
  1979.       Some Configuration Options have a variable length.  Since the
  1980.  
  1981.  
  1982.  
  1983. Simpson                  expires in six months                 [Page 34]
  1984. DRAFT                   Point-to-Point Protocol              August 1993
  1985.  
  1986.  
  1987.       Nak'd Option has been modified by the peer, the implementation
  1988.       MUST be able to handle an Option length which is different from
  1989.       the original Configure-Request.
  1990.  
  1991.    A summary of the Configure-Nak packet format is shown below.  The
  1992.    fields are transmitted from left to right.
  1993.  
  1994.     0                   1                   2                   3
  1995.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1996.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1997.    |     Code      |  Identifier   |            Length             |
  1998.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1999.    | Options ...
  2000.    +-+-+-+-+
  2001.  
  2002.  
  2003.    Code
  2004.  
  2005.       3 for Configure-Nak.
  2006.  
  2007.    Identifier
  2008.  
  2009.       The Identifier field is a copy of the Identifier field of the
  2010.       Configure-Request which caused this Configure-Nak.
  2011.  
  2012.    Options
  2013.  
  2014.       The Options field is variable in length and contains the list of
  2015.       zero or more Configuration Options that the sender is Nak'ing.
  2016.       All Configuration Options are always Nak'd simultaneously.
  2017.  
  2018.  
  2019. 5.4.  Configure-Reject
  2020.  
  2021.    Description
  2022.  
  2023.       If some Configuration Options received in a Configure-Request are
  2024.       not recognizable or are not acceptable for negotiation (as
  2025.       configured by a network administrator), then the implementation
  2026.       MUST transmit a LCP packet with the Code field set to 4
  2027.       (Configure-Reject), the Identifier field copied from the received
  2028.       Configure-Request, and the Options field filled with only the
  2029.       unacceptable Configuration Options from the Configure-Request.
  2030.       All recognizable and negotiable Configuration Options are filtered
  2031.       out of the Configure-Reject, but otherwise the Configuration
  2032.       Options MUST NOT be reordered or modified in any way.
  2033.  
  2034.       On reception of a Configure-Reject, the Identifier field MUST
  2035.  
  2036.  
  2037.  
  2038. Simpson                  expires in six months                 [Page 35]
  2039. DRAFT                   Point-to-Point Protocol              August 1993
  2040.  
  2041.  
  2042.       match that of the last transmitted Configure-Request.
  2043.       Additionally, the Configuration Options in a Configure-Reject MUST
  2044.       be a proper subset of those in the last transmitted Configure-
  2045.       Request.  Invalid packets are silently discarded.
  2046.  
  2047.       Reception of a valid Configure-Reject indicates that a new
  2048.       Configure-Request SHOULD be sent which does not include any of the
  2049.       Configuration Options listed in the Configure-Reject.
  2050.  
  2051.    A summary of the Configure-Reject packet format is shown below.  The
  2052.    fields are transmitted from left to right.
  2053.  
  2054.     0                   1                   2                   3
  2055.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2056.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2057.    |     Code      |  Identifier   |            Length             |
  2058.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2059.    | Options ...
  2060.    +-+-+-+-+
  2061.  
  2062.  
  2063.    Code
  2064.  
  2065.       4 for Configure-Reject.
  2066.  
  2067.    Identifier
  2068.  
  2069.       The Identifier field is a copy of the Identifier field of the
  2070.       Configure-Request which caused this Configure-Reject.
  2071.  
  2072.    Options
  2073.  
  2074.       The Options field is variable in length and contains the list of
  2075.       zero or more Configuration Options that the sender is rejecting.
  2076.       All Configuration Options are always rejected simultaneously.
  2077.  
  2078.  
  2079.  
  2080.  
  2081.  
  2082.  
  2083.  
  2084.  
  2085.  
  2086.  
  2087.  
  2088.  
  2089.  
  2090.  
  2091.  
  2092.  
  2093. Simpson                  expires in six months                 [Page 36]
  2094. DRAFT                   Point-to-Point Protocol              August 1993
  2095.  
  2096.  
  2097. 5.5.  Terminate-Request and Terminate-Ack
  2098.  
  2099.    Description
  2100.  
  2101.       LCP includes Terminate-Request and Terminate-Ack Codes in order to
  2102.       provide a mechanism for closing a connection.
  2103.  
  2104.       A LCP implementation wishing to close a connection SHOULD transmit
  2105.       a LCP packet with the Code field set to 5 (Terminate-Request), and
  2106.       the Data field filled with any desired data.  Terminate-Request
  2107.       packets SHOULD continue to be sent until Terminate-Ack is
  2108.       received, the lower layer indicates that it has gone down, or a
  2109.       sufficiently large number have been transmitted such that the peer
  2110.       is down with reasonable certainty.
  2111.  
  2112.       Upon reception of a Terminate-Request, a LCP packet MUST be
  2113.       transmitted with the Code field set to 6 (Terminate-Ack), the
  2114.       Identifier field copied from the Terminate-Request packet, and the
  2115.       Data field filled with any desired data.
  2116.  
  2117.       Reception of an unelicited Terminate-Ack indicates that the peer
  2118.       is in the Closed or Stopped states, or is otherwise in need of
  2119.       re-negotiation.
  2120.  
  2121.    A summary of the Terminate-Request and Terminate-Ack packet formats
  2122.    is shown below.  The fields are transmitted from left to right.
  2123.  
  2124.     0                   1                   2                   3
  2125.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2126.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2127.    |     Code      |  Identifier   |            Length             |
  2128.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2129.    |    Data ...
  2130.    +-+-+-+-+
  2131.  
  2132.  
  2133.    Code
  2134.  
  2135.       5 for Terminate-Request;
  2136.  
  2137.       6 for Terminate-Ack.
  2138.  
  2139.    Identifier
  2140.  
  2141.       The Identifier field is one octet and aids in matching requests
  2142.       and replies.
  2143.  
  2144.  
  2145.  
  2146.  
  2147.  
  2148. Simpson                  expires in six months                 [Page 37]
  2149. DRAFT                   Point-to-Point Protocol              August 1993
  2150.  
  2151.  
  2152.    Data
  2153.  
  2154.       The Data field is zero or more octets and contains uninterpreted
  2155.       data for use by the sender.  The data may consist of any binary
  2156.       value and may be of any length from zero to the peer's established
  2157.       MRU minus four.
  2158.  
  2159.  
  2160. 5.6.  Code-Reject
  2161.  
  2162.    Description
  2163.  
  2164.       Reception of a LCP packet with an unknown Code indicates that one
  2165.       of the communicating LCP implementations is faulty or incomplete.
  2166.       This error MUST be reported back to the sender of the unknown Code
  2167.       by transmitting a LCP packet with the Code field set to 7 (Code-
  2168.       Reject), and the inducing packet copied to the Rejected-
  2169.       Information field.
  2170.  
  2171.       Upon reception of a Code-Reject, the implementation SHOULD report
  2172.       the error, since it is unlikely that the situation can be
  2173.       rectified automatically.
  2174.  
  2175.    A summary of the Code-Reject packet format is shown below.  The
  2176.    fields are transmitted from left to right.
  2177.  
  2178.     0                   1                   2                   3
  2179.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2180.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2181.    |     Code      |  Identifier   |            Length             |
  2182.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2183.    | Rejected-Packet ...
  2184.    +-+-+-+-+-+-+-+-+
  2185.  
  2186.  
  2187.    Code
  2188.  
  2189.       7 for Code-Reject.
  2190.  
  2191.    Identifier
  2192.  
  2193.       The Identifier field is one octet and is for use by the
  2194.       transmitter.
  2195.  
  2196.    Rejected-Information
  2197.  
  2198.       The Rejected-Information field contains a copy of the LCP packet
  2199.       which is being rejected.  It begins with the Information field,
  2200.  
  2201.  
  2202.  
  2203. Simpson                  expires in six months                 [Page 38]
  2204. DRAFT                   Point-to-Point Protocol              August 1993
  2205.  
  2206.  
  2207.       and does not include any Data Link Layer headers nor an FCS.  The
  2208.       Rejected-Information MUST be truncated to comply with the peer's
  2209.       established MRU.
  2210.  
  2211.  
  2212. 5.7.  Protocol-Reject
  2213.  
  2214.    Description
  2215.  
  2216.       Reception of a PPP frame with an unknown Protocol field indicates
  2217.       that the peer is attempting to use a protocol which is
  2218.       unsupported.  This usually occurs when the peer attempts to
  2219.       configure a new protocol.  If the LCP state machine is in the
  2220.       Opened state, then this error MUST be reported back to the peer by
  2221.       transmitting a LCP packet with the Code field set to 8 (Protocol-
  2222.       Reject), the Rejected-Protocol field set to the received Protocol,
  2223.       and the inducing packet copied to the Rejected-Information field.
  2224.  
  2225.       Upon reception of a Protocol-Reject, the implementation MUST stop
  2226.       sending frames of the indicated protocol at the earliest
  2227.       opportunity.
  2228.  
  2229.       Protocol-Reject packets can only be sent in the LCP Opened state.
  2230.       Protocol-Reject packets received in any state other than the LCP
  2231.       Opened state SHOULD be silently discarded.
  2232.  
  2233.    A summary of the Protocol-Reject packet format is shown below.  The
  2234.    fields are transmitted from left to right.
  2235.  
  2236.     0                   1                   2                   3
  2237.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2238.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2239.    |     Code      |  Identifier   |            Length             |
  2240.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2241.    |       Rejected-Protocol       |      Rejected-Information ...
  2242.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2243.  
  2244.  
  2245.    Code
  2246.  
  2247.       8 for Protocol-Reject.
  2248.  
  2249.    Identifier
  2250.  
  2251.       The Identifier field is one octet and is for use by the
  2252.       transmitter.
  2253.  
  2254.  
  2255.  
  2256.  
  2257.  
  2258. Simpson                  expires in six months                 [Page 39]
  2259. DRAFT                   Point-to-Point Protocol              August 1993
  2260.  
  2261.  
  2262.    Rejected-Protocol
  2263.  
  2264.       The Rejected-Protocol field is two octets and contains the PPP
  2265.       Protocol field of the frame which is being rejected.
  2266.  
  2267.    Rejected-Information
  2268.  
  2269.       The Rejected-Information field contains a copy of the datagram
  2270.       which is being rejected.  It begins with the Information field,
  2271.       and does not include any Data Link Layer headers nor an FCS.  The
  2272.       Rejected-Information MUST be truncated to comply with the peer's
  2273.       established MRU.
  2274.  
  2275.  
  2276.  
  2277.  
  2278.  
  2279.  
  2280.  
  2281.  
  2282.  
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313. Simpson                  expires in six months                 [Page 40]
  2314. DRAFT                   Point-to-Point Protocol              August 1993
  2315.  
  2316.  
  2317. 5.8.  Echo-Request and Echo-Reply
  2318.  
  2319.    Description
  2320.  
  2321.       LCP includes Echo-Request and Echo-Reply Codes in order to provide
  2322.       a Data Link Layer loopback mechanism for use in exercising both
  2323.       directions of the link.  This is useful as an aid in debugging,
  2324.       link quality determination, performance testing, and for numerous
  2325.       other functions.
  2326.  
  2327.       An Echo-Request sender transmits a LCP packet with the Code field
  2328.       set to 9 (Echo-Request), the Identifier field set, the local
  2329.       Magic-Number inserted, and the Data field filled with any desired
  2330.       data, but not exceeding the peer's established MRU minus eight.
  2331.  
  2332.       Upon reception of an Echo-Request, a LCP packet MUST be
  2333.       transmitted with the Code field set to 10 (Echo-Reply), the
  2334.       Identifier field copied from the received Echo-Request, the local
  2335.       Magic-Number inserted, and the Data field copied from the Echo-
  2336.       Request, truncating as necessary to avoid exceeding the peer's
  2337.       established MRU.
  2338.  
  2339.       Echo-Request and Echo-Reply packets may only be sent in the LCP
  2340.       Opened state.  Echo-Request and Echo-Reply packets received in any
  2341.       state other than the LCP Opened state SHOULD be silently
  2342.       discarded.
  2343.  
  2344.    A summary of the Echo-Request and Echo-Reply packet formats is shown
  2345.    below.  The fields are transmitted from left to right.
  2346.  
  2347.     0                   1                   2                   3
  2348.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2349.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2350.    |     Code      |  Identifier   |            Length             |
  2351.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2352.    |                         Magic-Number                          |
  2353.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2354.    |    Data ...
  2355.    +-+-+-+-+
  2356.  
  2357.  
  2358.    Code
  2359.  
  2360.       9 for Echo-Request;
  2361.  
  2362.       10 for Echo-Reply.
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368. Simpson                  expires in six months                 [Page 41]
  2369. DRAFT                   Point-to-Point Protocol              August 1993
  2370.  
  2371.  
  2372.    Identifier
  2373.  
  2374.       The Identifier field is one octet and aids in matching Echo-
  2375.       Requests and Echo-Replies.
  2376.  
  2377.    Magic-Number
  2378.  
  2379.       The Magic-Number field is four octets and aids in detecting links
  2380.       which are in the looped-back condition.  Unless modified by a
  2381.       Configuration Option, the Magic-Number MUST be transmitted as
  2382.       zero.  See the Magic-Number Configuration Option for further
  2383.       explanation.
  2384.  
  2385.    Data
  2386.  
  2387.       The Data field is zero or more octets and contains uninterpreted
  2388.       data for use by the sender.  The data may consist of any binary
  2389.       value and may be of any length from zero to the peer's established
  2390.       MRU minus eight.
  2391.  
  2392.  
  2393. 5.9.  Discard-Request
  2394.  
  2395.    Description
  2396.  
  2397.       LCP includes a Discard-Request Code in order to provide a Data
  2398.       Link Layer sink mechanism for use in exercising the local to
  2399.       remote direction of the link.  This is useful as an aid in
  2400.       debugging, performance testing, and for numerous other functions.
  2401.  
  2402.       The sender transmits a LCP packet with the Code field set to 11
  2403.       (Discard-Request), the Identifier field set, the local Magic-
  2404.       Number inserted, and the Data field filled with any desired data,
  2405.       but not exceeding the peer's established MRU minus eight.
  2406.  
  2407.       On reception, the receiver MUST simply throw away any Discard-
  2408.       Request that it receives.
  2409.  
  2410.       Discard-Request packets may only be sent in the LCP Opened state.
  2411.  
  2412.    A summary of the Discard-Request packet format is shown below.  The
  2413.    fields are transmitted from left to right.
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419.  
  2420.  
  2421.  
  2422.  
  2423. Simpson                  expires in six months                 [Page 42]
  2424. DRAFT                   Point-to-Point Protocol              August 1993
  2425.  
  2426.  
  2427.  
  2428.     0                   1                   2                   3
  2429.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2430.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2431.    |     Code      |  Identifier   |            Length             |
  2432.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2433.    |                         Magic-Number                          |
  2434.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2435.    |    Data ...
  2436.    +-+-+-+-+
  2437.  
  2438.  
  2439.    Code
  2440.  
  2441.       11 for Discard-Request.
  2442.  
  2443.    Identifier
  2444.  
  2445.       The Identifier field is one octet and is for use by the Discard-
  2446.       Request sender.
  2447.  
  2448.    Magic-Number
  2449.  
  2450.       The Magic-Number field is four octets and aids in detecting links
  2451.       which are in the looped-back condition.  Unless modified by a
  2452.       configuration option, the Magic-Number MUST be transmitted as
  2453.       zero.  See the Magic-Number Configuration Option for further
  2454.       explanation.
  2455.  
  2456.    Data
  2457.  
  2458.       The Data field is zero or more octets and contains uninterpreted
  2459.       data for use by the sender.  The data may consist of any binary
  2460.       value and may be of any length from zero to the peer's established
  2461.       MRU minus four.
  2462.  
  2463.  
  2464.  
  2465.  
  2466.  
  2467.  
  2468.  
  2469.  
  2470.  
  2471.  
  2472.  
  2473.  
  2474.  
  2475.  
  2476.  
  2477.  
  2478. Simpson                  expires in six months                 [Page 43]
  2479. DRAFT                   Point-to-Point Protocol              August 1993
  2480.  
  2481.  
  2482. 6.  LCP Configuration Options
  2483.  
  2484.    LCP Configuration Options allow negotiation of modifications to the
  2485.    default characteristics of a point-to-point link.  If a Configuration
  2486.    Option is not included in a Configure-Request packet, the default
  2487.    value for that Configuration Option is assumed.
  2488.  
  2489.    Some Configuration Options MAY be listed more than once.  The effect
  2490.    of this is Configuration Option specific, and is specified by each
  2491.    such Configuration Option description.  (None of the Configuration
  2492.    Options in this specification can be listed more than once.)
  2493.  
  2494.    The end of the list of Configuration Options is indicated by the
  2495.    length of the LCP packet.
  2496.  
  2497.    Unless otherwise specified, all Configuration Options apply in a
  2498.    half-duplex fashion; typically, in the receive direction of the link
  2499.    from the point of view of the Configure-Request sender.
  2500.  
  2501.    A summary of the Configuration Option format is shown below.  The
  2502.    fields are transmitted from left to right.
  2503.  
  2504.     0                   1
  2505.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
  2506.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2507.    |     Type      |    Length     |    Data ...
  2508.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2509.  
  2510.  
  2511.    Type
  2512.  
  2513.       The Type field is one octet and indicates the type of
  2514.       Configuration Option.  Up-to-date values of the LCP Option Type
  2515.       field are specified in the most recent "Assigned Numbers" RFC [2].
  2516.       This specification concerns the following values:
  2517.  
  2518.          1       Maximum-Receive-Unit
  2519.          2       Async-Control-Character-Map
  2520.          3       Authentication-Protocol
  2521.          4       Quality-Protocol
  2522.          5       Magic-Number
  2523.          6       RESERVED
  2524.          7       Protocol-Field-Compression
  2525.          8       Address-and-Control-Field-Compression
  2526.  
  2527.  
  2528.  
  2529.  
  2530.  
  2531.  
  2532.  
  2533. Simpson                  expires in six months                 [Page 44]
  2534. DRAFT                   Point-to-Point Protocol              August 1993
  2535.  
  2536.  
  2537.    Length
  2538.  
  2539.       The Length field is one octet and indicates the length of this
  2540.       Configuration Option including the Type, Length and Data fields.
  2541.       If a negotiable Configuration Option is received in a Configure-
  2542.       Request but with an invalid Length, a Configure-Nak SHOULD be
  2543.       transmitted which includes the desired Configuration Option with
  2544.       an appropriate Length and Data.
  2545.  
  2546.    Data
  2547.  
  2548.       The Data field is zero or more octets and information specific to
  2549.       the Configuration Option.  The format and length of the Data field
  2550.       is determined by the Type and Length fields.
  2551.  
  2552.  
  2553.  
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560.  
  2561.  
  2562.  
  2563.  
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579.  
  2580.  
  2581.  
  2582.  
  2583.  
  2584.  
  2585.  
  2586.  
  2587.  
  2588. Simpson                  expires in six months                 [Page 45]
  2589. DRAFT                   Point-to-Point Protocol              August 1993
  2590.  
  2591.  
  2592. 6.1.  Maximum-Receive-Unit
  2593.  
  2594.    Description
  2595.  
  2596.       This Configuration Option may be sent to inform the peer that the
  2597.       implementation can receive larger frames, or to request that the
  2598.       peer send smaller frames.
  2599.  
  2600.       The default value is 1500 octets.  If smaller frames are
  2601.       requested, an implementation MUST still be able to receive the
  2602.       full 1500 octet information field in case link synchronization is
  2603.       lost.
  2604.  
  2605.       Implementation Note:
  2606.  
  2607.          This option is used to indicate an implementation capability.
  2608.          The peer is not required to maximize the use of the capacity.
  2609.          For example, when a MRU is indicated which is 2048 octets, the
  2610.          peer is not required to send any packet with 2048 octets.  The
  2611.          peer need not Configure-Nak to indicate that it will only send
  2612.          smaller packets, since the implementation will always require
  2613.          support for at least 1500 octets.
  2614.  
  2615.    A summary of the Maximum-Receive-Unit Configuration Option format is
  2616.    shown below.  The fields are transmitted from left to right.
  2617.  
  2618.     0                   1                   2                   3
  2619.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2620.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2621.    |     Type      |    Length     |      Maximum-Receive-Unit     |
  2622.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2623.  
  2624.  
  2625.    Type
  2626.  
  2627.       1
  2628.  
  2629.    Length
  2630.  
  2631.       4
  2632.  
  2633.    Maximum-Receive-Unit
  2634.  
  2635.       The Maximum-Receive-Unit field is two octets, and specifies the
  2636.       maximum number of octets in the Information and Padding fields.
  2637.       It does not include the framing, Protocol field, FCS, nor any
  2638.       transparency bits or bytes.
  2639.  
  2640.  
  2641.  
  2642.  
  2643. Simpson                  expires in six months                 [Page 46]
  2644. DRAFT                   Point-to-Point Protocol              August 1993
  2645.  
  2646.  
  2647. 6.2.  Async-Control-Character-Map
  2648.  
  2649.    Description
  2650.  
  2651.       This Configuration Option provides a method to negotiate the use
  2652.       of control character transparency on asynchronous links.
  2653.  
  2654.       For asynchronous links, the default value is 0xffffffff, which
  2655.       causes all octets less than 0x20 to be mapped into an appropriate
  2656.       two octet sequence.  For most other links, the default value is 0,
  2657.       since there is no need for mapping.
  2658.  
  2659.       However, it is rarely necessary to map all control characters, and
  2660.       often it is unnecessary to map any control characters.  The
  2661.       Configuration Option is used to inform the peer which control
  2662.       characters MUST remain mapped when the peer sends them.
  2663.  
  2664.       The peer MAY still send any other octets in mapped format, if it
  2665.       is necessary because of constraints known to the peer.  The peer
  2666.       SHOULD Configure-Nak with the logical union of the sets of mapped
  2667.       octets, so that when such octets are spuriously introduced they
  2668.       can be ignored on receipt.
  2669.  
  2670.    A summary of the Async-Control-Character-Map Configuration Option
  2671.    format is shown below.  The fields are transmitted from left to
  2672.    right.
  2673.  
  2674.     0                   1                   2                   3
  2675.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2676.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2677.    |     Type      |    Length     |  Async-Control-Character-Map
  2678.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2679.              ACCM (cont)           |
  2680.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2681.  
  2682.  
  2683.    Type
  2684.  
  2685.       2
  2686.  
  2687.    Length
  2688.  
  2689.       6
  2690.  
  2691.    Async-Control-Character-Map
  2692.  
  2693.       The Async-Control-Character-Map field is four octets and indicates
  2694.       the set of control characters to be mapped.  The map is sent most
  2695.  
  2696.  
  2697.  
  2698. Simpson                  expires in six months                 [Page 47]
  2699. DRAFT                   Point-to-Point Protocol              August 1993
  2700.  
  2701.  
  2702.       significant octet first.
  2703.  
  2704.       Each numbered bit corresponds to the octet of the same value.  If
  2705.       the bit is cleared to zero, then that octet need not be mapped.
  2706.       If the bit is set to one, then that octet MUST remain mapped.  For
  2707.       example, if bit 19 is set to zero, then the ASCII control
  2708.       character 19 (DC3, Control-S) MAY be sent in the clear.
  2709.  
  2710.          Note: The least significant bit of the least significant octet
  2711.          (the final octet transmitted) is numbered bit 0, and would map
  2712.          to the ASCII control character NUL.
  2713.  
  2714.  
  2715.  
  2716.  
  2717.  
  2718.  
  2719.  
  2720.  
  2721.  
  2722.  
  2723.  
  2724.  
  2725.  
  2726.  
  2727.  
  2728.  
  2729.  
  2730.  
  2731.  
  2732.  
  2733.  
  2734.  
  2735.  
  2736.  
  2737.  
  2738.  
  2739.  
  2740.  
  2741.  
  2742.  
  2743.  
  2744.  
  2745.  
  2746.  
  2747.  
  2748.  
  2749.  
  2750.  
  2751.  
  2752.  
  2753. Simpson                  expires in six months                 [Page 48]
  2754. DRAFT                   Point-to-Point Protocol              August 1993
  2755.  
  2756.  
  2757. 6.3.  Authentication-Protocol
  2758.  
  2759.    Description
  2760.  
  2761.       On some links it may be desirable to require a peer to
  2762.       authenticate itself before allowing network-layer protocol packets
  2763.       to be exchanged.
  2764.  
  2765.       This Configuration Option provides a method to negotiate the use
  2766.       of a specific authentication protocol.  By default, authentication
  2767.       is not required.
  2768.  
  2769.       An implementation MUST NOT include multiple Authentication-
  2770.       Protocol Configuration Options in its Configure-Request packets.
  2771.       Instead, it SHOULD attempt to configure the most desirable
  2772.       protocol first.  If that protocol is Configure-Nak'd, then the
  2773.       implementation SHOULD attempt the next most desirable protocol in
  2774.       the next Configure-Request.
  2775.  
  2776.       If an implementation sends a Configure-Ack with this Configuration
  2777.       Option, then it is agreeing to authenticate with the specified
  2778.       protocol.  An implementation receiving a Configure-Ack with this
  2779.       Configuration Option SHOULD expect the peer to authenticate with
  2780.       the acknowledged protocol.
  2781.  
  2782.       There is no requirement that authentication be full duplex or that
  2783.       the same protocol be used in both directions.  It is perfectly
  2784.       acceptable for different protocols to be used in each direction.
  2785.       This will, of course, depend on the specific protocols negotiated.
  2786.  
  2787.    A summary of the Authentication-Protocol Configuration Option format
  2788.    is shown below.  The fields are transmitted from left to right.
  2789.  
  2790.     0                   1                   2                   3
  2791.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2792.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2793.    |     Type      |    Length     |     Authentication-Protocol   |
  2794.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2795.    |    Data ...
  2796.    +-+-+-+-+
  2797.  
  2798.  
  2799.    Type
  2800.  
  2801.       3
  2802.  
  2803.  
  2804.  
  2805.  
  2806.  
  2807.  
  2808. Simpson                  expires in six months                 [Page 49]
  2809. DRAFT                   Point-to-Point Protocol              August 1993
  2810.  
  2811.  
  2812.    Length
  2813.  
  2814.       >= 4
  2815.  
  2816.    Authentication-Protocol
  2817.  
  2818.       The Authentication-Protocol field is two octets and indicates the
  2819.       authentication protocol desired.  Values for this field are always
  2820.       the same as the PPP Protocol field values for that same
  2821.       authentication protocol.
  2822.  
  2823.       Up-to-date values of the Authentication-Protocol field are
  2824.       specified in the most recent "Assigned Numbers" RFC [2].  Current
  2825.       values are assigned as follows:
  2826.  
  2827.          Value (in hex)          Protocol
  2828.  
  2829.          c023                    Password Authentication Protocol
  2830.          c223                    Challenge Handshake Authentication Protocol
  2831.  
  2832.  
  2833.    Data
  2834.  
  2835.       The Data field is zero or more octets and contains additional data
  2836.       as determined by the particular protocol.
  2837.  
  2838.  
  2839.  
  2840.  
  2841.  
  2842.  
  2843.  
  2844.  
  2845.  
  2846.  
  2847.  
  2848.  
  2849.  
  2850.  
  2851.  
  2852.  
  2853.  
  2854.  
  2855.  
  2856.  
  2857.  
  2858.  
  2859.  
  2860.  
  2861.  
  2862.  
  2863. Simpson                  expires in six months                 [Page 50]
  2864. DRAFT                   Point-to-Point Protocol              August 1993
  2865.  
  2866.  
  2867. 6.4.  Quality-Protocol
  2868.  
  2869.    Description
  2870.  
  2871.       On some links it may be desirable to determine when, and how
  2872.       often, the link is dropping data.  This process is called link
  2873.       quality monitoring.
  2874.  
  2875.       This Configuration Option provides a method to negotiate the use
  2876.       of a specific protocol for link quality monitoring.  By default,
  2877.       link quality monitoring is disabled.
  2878.  
  2879.       There is no requirement that quality monitoring be full duplex or
  2880.       that the same protocol be used in both directions.  It is
  2881.       perfectly acceptable for different protocols to be used in each
  2882.       direction.  This will, of course, depend on the specific protocols
  2883.       negotiated.
  2884.  
  2885.    A summary of the Quality-Protocol Configuration Option format is
  2886.    shown below.  The fields are transmitted from left to right.
  2887.  
  2888.     0                   1                   2                   3
  2889.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2890.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2891.    |     Type      |    Length     |        Quality-Protocol       |
  2892.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2893.    |    Data ...
  2894.    +-+-+-+-+
  2895.  
  2896.  
  2897.    Type
  2898.  
  2899.       4
  2900.  
  2901.    Length
  2902.  
  2903.       >= 4
  2904.  
  2905.    Quality-Protocol
  2906.  
  2907.       The Quality-Protocol field is two octets and indicates the link
  2908.       quality monitoring protocol desired.  Values for this field are
  2909.       always the same as the PPP Protocol field values for that same
  2910.       monitoring protocol.
  2911.  
  2912.       Up-to-date values of the Quality-Protocol field are specified in
  2913.       the most recent "Assigned Numbers" RFC [2].  Current values are
  2914.       assigned as follows:
  2915.  
  2916.  
  2917.  
  2918. Simpson                  expires in six months                 [Page 51]
  2919. DRAFT                   Point-to-Point Protocol              August 1993
  2920.  
  2921.  
  2922.  
  2923.          Value (in hex)          Protocol
  2924.  
  2925.          c025                    Link Quality Report
  2926.  
  2927.  
  2928.    Data
  2929.  
  2930.       The Data field is zero or more octets and contains additional data
  2931.       as determined by the particular protocol.
  2932.  
  2933.  
  2934.  
  2935.  
  2936.  
  2937.  
  2938.  
  2939.  
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952.  
  2953.  
  2954.  
  2955.  
  2956.  
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973. Simpson                  expires in six months                 [Page 52]
  2974. DRAFT                   Point-to-Point Protocol              August 1993
  2975.  
  2976.  
  2977. 6.5.  Magic-Number
  2978.  
  2979.    Description
  2980.  
  2981.       This Configuration Option provides a method to detect looped-back
  2982.       links and other Data Link Layer anomalies.  This Configuration
  2983.       Option MAY be required by some other Configuration Options such as
  2984.       the Quality-Protocol Configuration Option.  By default, the
  2985.       Magic-Number is not negotiated, and zero is inserted where a
  2986.       Magic-Number might otherwise be used.
  2987.  
  2988.       Before this Configuration Option is requested, an implementation
  2989.       MUST choose its Magic-Number.  It is recommended that the Magic-
  2990.       Number be chosen in the most random manner possible in order to
  2991.       guarantee with very high probability that an implementation will
  2992.       arrive at a unique number.  A good way to choose a unique random
  2993.       number is to start with an unique seed.  Suggested sources of
  2994.       uniqueness include machine serial numbers, other network hardware
  2995.       addresses, time-of-day clocks, etc.  Particularly good random
  2996.       number seeds are precise measurements of the inter-arrival time of
  2997.       physical events such as packet reception on other connected
  2998.       networks, server response time, or the typing rate of a human
  2999.       user.  It is also suggested that as many sources as possible be
  3000.       used simultaneously.
  3001.  
  3002.       When a Configure-Request is received with a Magic-Number
  3003.       Configuration Option, the received Magic-Number is compared with
  3004.       the Magic-Number of the last Configure-Request sent to the peer.
  3005.       If the two Magic-Numbers are different, then the link is not
  3006.       looped-back, and the Magic-Number SHOULD be acknowledged.  If the
  3007.       two Magic-Numbers are equal, then it is possible, but not certain,
  3008.       that the link is looped-back and that this Configure-Request is
  3009.       actually the one last sent.  To determine this, a Configure-Nak
  3010.       MUST be sent specifying a different Magic-Number value.  A new
  3011.       Configure-Request SHOULD NOT be sent to the peer until normal
  3012.       processing would cause it to be sent (that is, until a Configure-
  3013.       Nak is received or the Restart timer runs out).
  3014.  
  3015.       Reception of a Configure-Nak with a Magic-Number different from
  3016.       that of the last Configure-Nak sent to the peer proves that a link
  3017.       is not looped-back, and indicates a unique Magic-Number.  If the
  3018.       Magic-Number is equal to the one sent in the last Configure-Nak,
  3019.       the possibility of a looped-back link is increased, and a new
  3020.       Magic-Number MUST be chosen.  In either case, a new Configure-
  3021.       Request SHOULD be sent with the new Magic-Number.
  3022.  
  3023.       If the link is indeed looped-back, this sequence (transmit
  3024.       Configure-Request, receive Configure-Request, transmit Configure-
  3025.  
  3026.  
  3027.  
  3028. Simpson                  expires in six months                 [Page 53]
  3029. DRAFT                   Point-to-Point Protocol              August 1993
  3030.  
  3031.  
  3032.       Nak, receive Configure-Nak) will repeat over and over again.  If
  3033.       the link is not looped-back, this sequence might occur a few
  3034.       times, but it is extremely unlikely to occur repeatedly.  More
  3035.       likely, the Magic-Numbers chosen at either end will quickly
  3036.       diverge, terminating the sequence.  The following table shows the
  3037.       probability of collisions assuming that both ends of the link
  3038.       select Magic-Numbers with a perfectly uniform distribution:
  3039.  
  3040.          Number of Collisions        Probability
  3041.          --------------------   ---------------------
  3042.                  1              1/2**32    = 2.3 E-10
  3043.                  2              1/2**32**2 = 5.4 E-20
  3044.                  3              1/2**32**3 = 1.3 E-29
  3045.  
  3046.  
  3047.       Good sources of uniqueness or randomness are required for this
  3048.       divergence to occur.  If a good source of uniqueness cannot be
  3049.       found, it is recommended that this Configuration Option not be
  3050.       enabled; Configure-Requests with the option SHOULD NOT be
  3051.       transmitted and any Magic-Number Configuration Options which the
  3052.       peer sends SHOULD be either acknowledged or rejected.  In this
  3053.       case, loop-backs cannot be reliably detected by the
  3054.       implementation, although they may still be detectable by the peer.
  3055.  
  3056.       If an implementation does transmit a Configure-Request with a
  3057.       Magic-Number Configuration Option, then it MUST NOT respond with a
  3058.       Configure-Reject if it receives a Configure-Request with a Magic-
  3059.       Number Configuration Option.  That is, if an implementation
  3060.       desires to use Magic Numbers, then it MUST also allow its peer to
  3061.       do so.  If an implementation does receive a Configure-Reject in
  3062.       response to a Configure-Request, it can only mean that the link is
  3063.       not looped-back, and that its peer will not be using Magic-
  3064.       Numbers.  In this case, an implementation SHOULD act as if the
  3065.       negotiation had been successful (as if it had instead received a
  3066.       Configure-Ack).
  3067.  
  3068.       The Magic-Number also may be used to detect looped-back links
  3069.       during normal operation as well as during Configuration Option
  3070.       negotiation.  All LCP Echo-Request, Echo-Reply, and Discard-
  3071.       Request packets have a Magic-Number field.  If Magic-Number has
  3072.       been successfully negotiated, an implementation MUST transmit
  3073.       these packets with the Magic-Number field set to its negotiated
  3074.       Magic-Number.
  3075.  
  3076.       The Magic-Number field of these packets SHOULD be inspected on
  3077.       reception.  All received Magic-Number fields MUST be equal to
  3078.       either zero or the peer's unique Magic-Number, depending on
  3079.       whether or not the peer negotiated a Magic-Number.
  3080.  
  3081.  
  3082.  
  3083. Simpson                  expires in six months                 [Page 54]
  3084. DRAFT                   Point-to-Point Protocol              August 1993
  3085.  
  3086.  
  3087.       Reception of a Magic-Number field equal to the negotiated local
  3088.       Magic-Number indicates a looped-back link.  Reception of a Magic-
  3089.       Number other than the negotiated local Magic-Number or the peer's
  3090.       negotiated Magic-Number, or zero if the peer didn't negotiate one,
  3091.       indicates a link which has been (mis)configured for communications
  3092.       with a different peer.
  3093.  
  3094.       Procedures for recovery from either case are unspecified and may
  3095.       vary from implementation to implementation.  A somewhat
  3096.       pessimistic procedure is to assume a LCP Down event.  A further
  3097.       Open event will begin the process of re-establishing the link,
  3098.       which can't complete until the loop-back condition is terminated
  3099.       and Magic-Numbers are successfully negotiated.  A more optimistic
  3100.       procedure (in the case of a loop-back) is to begin transmitting
  3101.       LCP Echo-Request packets until an appropriate Echo-Reply is
  3102.       received, indicating a termination of the loop-back condition.
  3103.  
  3104.    A summary of the Magic-Number Configuration Option format is shown
  3105.    below.  The fields are transmitted from left to right.
  3106.  
  3107.     0                   1                   2                   3
  3108.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  3109.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3110.    |     Type      |    Length     |          Magic-Number
  3111.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3112.          Magic-Number (cont)       |
  3113.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3114.  
  3115.  
  3116.    Type
  3117.  
  3118.       5
  3119.  
  3120.    Length
  3121.  
  3122.       6
  3123.  
  3124.    Magic-Number
  3125.  
  3126.       The Magic-Number field is four octets and indicates a number which
  3127.       is very likely to be unique to one end of the link.  A Magic-
  3128.       Number of zero is illegal and MUST always be Nak'd, if it is not
  3129.       Rejected outright.
  3130.  
  3131.  
  3132.  
  3133.  
  3134.  
  3135.  
  3136.  
  3137.  
  3138. Simpson                  expires in six months                 [Page 55]
  3139. DRAFT                   Point-to-Point Protocol              August 1993
  3140.  
  3141.  
  3142. 6.6.  Protocol-Field-Compression
  3143.  
  3144.    Description
  3145.  
  3146.       This Configuration Option provides a method to negotiate the
  3147.       compression of the PPP Protocol field.  By default, all
  3148.       implementations MUST transmit frames with two octet PPP Protocol
  3149.       fields.
  3150.  
  3151.       PPP Protocol field numbers are chosen such that some values may be
  3152.       compressed into a single octet form which is clearly
  3153.       distinguishable from the two octet form.  This Configuration
  3154.       Option is sent to inform the peer that the implementation can
  3155.       receive such single octet Protocol fields.
  3156.  
  3157.       As previously mentioned, the Protocol field uses an extension
  3158.       mechanism consistent with the ISO 3309 extension mechanism for the
  3159.       Address field; the Least Significant Bit (LSB) of each octet is
  3160.       used to indicate extension of the Protocol field.  A binary "0" as
  3161.       the LSB indicates that the Protocol field continues with the
  3162.       following octet.  The presence of a binary "1" as the LSB marks
  3163.       the last octet of the Protocol field.  Notice that any number of
  3164.       "0" octets may be prepended to the field, and will still indicate
  3165.       the same value (consider the two binary representations for 3,
  3166.       00000011 and 00000000 00000011).
  3167.  
  3168.       When using low speed links, it is desirable to conserve bandwidth
  3169.       by sending as little redundant data as possible.  The Protocol-
  3170.       Field-Compression Configuration Option allows a trade-off between
  3171.       implementation simplicity and bandwidth efficiency.  If
  3172.       successfully negotiated, the ISO 3309 extension mechanism may be
  3173.       used to compress the Protocol field to one octet instead of two.
  3174.       The large majority of frames are compressible since data protocols
  3175.       are typically assigned with Protocol field values less than 256.
  3176.  
  3177.       Compressed Protocol fields MUST NOT be transmitted unless this
  3178.       Configuration Option has been negotiated.  When negotiated, PPP
  3179.       implementations MUST accept PPP frames with either double-octet or
  3180.       single-octet Protocol fields, and MUST NOT distinguish between
  3181.       them.
  3182.  
  3183.       The Protocol field is never compressed when sending any LCP
  3184.       packet.  This rule guarantees unambiguous recognition of LCP
  3185.       packets.
  3186.  
  3187.       When a Protocol field is compressed, the Data Link Layer FCS field
  3188.       is calculated on the compressed frame, not the original
  3189.       uncompressed frame.
  3190.  
  3191.  
  3192.  
  3193. Simpson                  expires in six months                 [Page 56]
  3194. DRAFT                   Point-to-Point Protocol              August 1993
  3195.  
  3196.  
  3197.    A summary of the Protocol-Field-Compression Configuration Option
  3198.    format is shown below.  The fields are transmitted from left to
  3199.    right.
  3200.  
  3201.     0                   1
  3202.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
  3203.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3204.    |     Type      |    Length     |
  3205.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3206.  
  3207.  
  3208.    Type
  3209.  
  3210.       7
  3211.  
  3212.    Length
  3213.  
  3214.       2
  3215.  
  3216.  
  3217.  
  3218.  
  3219.  
  3220.  
  3221.  
  3222.  
  3223.  
  3224.  
  3225.  
  3226.  
  3227.  
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.  
  3239.  
  3240.  
  3241.  
  3242.  
  3243.  
  3244.  
  3245.  
  3246.  
  3247.  
  3248. Simpson                  expires in six months                 [Page 57]
  3249. DRAFT                   Point-to-Point Protocol              August 1993
  3250.  
  3251.  
  3252. 6.7.  Address-and-Control-Field-Compression
  3253.  
  3254.    Description
  3255.  
  3256.       This Configuration Option provides a method to negotiate the
  3257.       compression of the Data Link Layer Address and Control fields.  By
  3258.       default, all implementations MUST transmit frames with Address and
  3259.       Control fields appropriate to the link framing.
  3260.  
  3261.       Since these fields usually have constant values for point-to-point
  3262.       links, they are easily compressed.  This Configuration Option is
  3263.       sent to inform the peer that the implementation can receive
  3264.       compressed Address and Control fields.
  3265.  
  3266.       If a compressed frame is received when Address-and-Control-Field-
  3267.       Compression has not been negotiated, the implementation MAY
  3268.       silently discard the frame.
  3269.  
  3270.       The Address and Control fields MUST NOT be compressed when sending
  3271.       any LCP packet.  This rule guarantees unambiguous recognition of
  3272.       LCP packets.
  3273.  
  3274.       When the Address and Control fields are compressed, the Data Link
  3275.       Layer FCS field is calculated on the compressed frame, not the
  3276.       original uncompressed frame.
  3277.  
  3278.    A summary of the Address-and-Control-Field-Compression configuration
  3279.    option format is shown below.  The fields are transmitted from left
  3280.    to right.
  3281.  
  3282.     0                   1
  3283.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
  3284.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3285.    |     Type      |    Length     |
  3286.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3287.  
  3288.  
  3289.    Type
  3290.  
  3291.       8
  3292.  
  3293.    Length
  3294.  
  3295.       2
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303. Simpson                  expires in six months                 [Page 58]
  3304. DRAFT                   Point-to-Point Protocol              August 1993
  3305.  
  3306.  
  3307. A.  LCP Recommended Options
  3308.  
  3309.    The following Configurations Options are recommended:
  3310.  
  3311.       SYNC LINES
  3312.  
  3313.       Magic Number
  3314.       Link Quality Monitoring
  3315.       No Address and Control Field Compression
  3316.       No Protocol Field Compression
  3317.  
  3318.  
  3319.       ASYNC LINES
  3320.  
  3321.       Async Control Character Map
  3322.       Magic Number
  3323.       Address and Control Field Compression
  3324.       Protocol Field Compression
  3325.  
  3326.  
  3327.  
  3328.  
  3329.  
  3330.  
  3331.  
  3332.  
  3333.  
  3334.  
  3335.  
  3336.  
  3337.  
  3338.  
  3339.  
  3340.  
  3341.  
  3342.  
  3343.  
  3344.  
  3345.  
  3346.  
  3347.  
  3348.  
  3349.  
  3350.  
  3351.  
  3352.  
  3353.  
  3354.  
  3355.  
  3356.  
  3357.  
  3358. Simpson                  expires in six months                 [Page 59]
  3359. DRAFT                   Point-to-Point Protocol              August 1993
  3360.  
  3361.  
  3362. Security Considerations
  3363.  
  3364.    Security issues are briefly discussed in sections concerning the
  3365.    Authentication Phase, the Close event, and the Authentication-
  3366.    Protocol Configuration Option.  Further discussion is in a companion
  3367.    document entitled PPP Authentication Protocols.
  3368.  
  3369.  
  3370. References
  3371.  
  3372.    [1]   Perkins, D.D., "Requirements for an Internet Standard Point-
  3373.          to-Point Protocol", work in progress.
  3374.  
  3375.    [2]   Reynolds, J.K., Postel, J.B., "Assigned Numbers", RFC 1340,
  3376.          July 1992.
  3377.  
  3378.  
  3379. Acknowledgments
  3380.  
  3381.    Much of the text in this document is taken from the WG Requirements,
  3382.    and RFCs 1171 & 1172, by Drew Perkins of Carnegie Mellon University,
  3383.    and by Russ Hobby of the University of California at Davis.
  3384.  
  3385.    Many people spent significant time helping to develop the Point-to-
  3386.    Point Protocol.  The complete list of people is too numerous to list,
  3387.    but the following people deserve special thanks: Rick Adams (UUNET),
  3388.    Ken Adelman (TGV), Fred Baker (ACC), Mike Ballard (Telebit), Craig
  3389.    Fox (Network Systems), Karl Fox (Morning Star Technologies), Phill
  3390.    Gross (NRI), former WG chair Russ Hobby (UC Davis), David Kaufman
  3391.    (Proteon), former WG chair Steve Knowles (FTP Software), former WG
  3392.    chair Brian Lloyd (L&A), John LoVerso (Xylogics), Bill Melohn (Sun
  3393.    Microsystems), Mike Patton (MIT), former WG chair Drew Perkins
  3394.    (Fore), Greg Satz (cisco systems), John Shriver (Proteon), and Asher
  3395.    Waldfogel (Wellfleet).
  3396.  
  3397.    The "Day in the Life" example was provided by Kory Hamzeh (Avatar).
  3398.    In this version, improvements in wording were also provided by Scott
  3399.    Ginsburg, Mark Moraes, and Timon Sloan, as they worked on
  3400.    implementations.
  3401.  
  3402.    Special thanks to Morning Star Technologies for providing computing
  3403.    resources and network access support for writing this specification.
  3404.  
  3405.  
  3406.  
  3407.  
  3408.  
  3409.  
  3410.  
  3411.  
  3412.  
  3413. Simpson                  expires in six months                 [Page 60]
  3414. DRAFT                   Point-to-Point Protocol              August 1993
  3415.  
  3416.  
  3417. Chair's Address
  3418.  
  3419.    The working group can be contacted via the current chair:
  3420.  
  3421.       Fred Baker
  3422.       Advanced Computer Communications
  3423.       315 Bollay Drive
  3424.       Santa Barbara, California, 93111
  3425.  
  3426.       EMail: fbaker@acc.com
  3427.  
  3428.  
  3429. Editor's Address
  3430.  
  3431.    Questions about this memo can also be directed to:
  3432.  
  3433.       William Allen Simpson
  3434.       Daydreamer
  3435.       Computer Systems Consulting Services
  3436.       1384 Fontaine
  3437.       Madison Heights, Michigan  48071
  3438.  
  3439.       EMail: Bill.Simpson@um.cc.umich.edu
  3440.  
  3441.  
  3442.  
  3443.  
  3444.  
  3445.  
  3446.  
  3447.  
  3448.  
  3449.  
  3450.  
  3451.  
  3452.  
  3453.  
  3454.  
  3455.  
  3456.  
  3457.  
  3458.  
  3459.  
  3460.  
  3461.  
  3462.  
  3463.  
  3464.  
  3465.  
  3466.  
  3467.  
  3468. Simpson                  expires in six months                 [Page 61]
  3469. DRAFT                   Point-to-Point Protocol              August 1993
  3470.  
  3471.  
  3472.                            Table of Contents
  3473.  
  3474.  
  3475.      1.     Introduction ..........................................    1
  3476.         1.1       Specification of Requirements ...................    2
  3477.         1.2       Terminology .....................................    2
  3478.  
  3479.      2.     PPP Encapsulation .....................................    4
  3480.  
  3481.      3.     PPP Link Operation ....................................    7
  3482.         3.1       Overview ........................................    7
  3483.         3.2       Phase Diagram ...................................    7
  3484.         3.3       Link Dead (physical-layer not ready) ............    7
  3485.         3.4       Link Establishment Phase ........................    8
  3486.         3.5       Authentication Phase ............................    8
  3487.         3.6       Network-Layer Protocol Phase ....................    9
  3488.         3.7       Link Termination Phase ..........................    9
  3489.  
  3490.      4.     The Option Negotiation Automaton ......................   11
  3491.         4.1       State Diagram ...................................   12
  3492.         4.2       State Transition Table ..........................   13
  3493.         4.3       A Day in the Life ...............................   15
  3494.         4.4       States ..........................................   16
  3495.         4.5       Events ..........................................   19
  3496.         4.6       Actions .........................................   24
  3497.         4.7       Loop Avoidance ..................................   27
  3498.         4.8       Counters and Timers .............................   27
  3499.  
  3500.      5.     LCP Packet Formats ....................................   29
  3501.         5.1       Configure-Request ...............................   32
  3502.         5.2       Configure-Ack ...................................   33
  3503.         5.3       Configure-Nak ...................................   34
  3504.         5.4       Configure-Reject ................................   35
  3505.         5.5       Terminate-Request and Terminate-Ack .............   37
  3506.         5.6       Code-Reject .....................................   38
  3507.         5.7       Protocol-Reject .................................   39
  3508.         5.8       Echo-Request and Echo-Reply .....................   41
  3509.         5.9       Discard-Request .................................   42
  3510.  
  3511.      6.     LCP Configuration Options .............................   44
  3512.         6.1       Maximum-Receive-Unit ............................   46
  3513.         6.2       Async-Control-Character-Map .....................   47
  3514.         6.3       Authentication-Protocol .........................   49
  3515.         6.4       Quality-Protocol ................................   51
  3516.         6.5       Magic-Number ....................................   53
  3517.         6.6       Protocol-Field-Compression ......................   56
  3518.         6.7       Address-and-Control-Field-Compression ...........   58
  3519.  
  3520.  
  3521.  
  3522.  
  3523. Simpson                  expires in six months                [Page iii]
  3524. DRAFT                   Point-to-Point Protocol              August 1993
  3525.  
  3526.  
  3527.      APPENDICES ...................................................   59
  3528.  
  3529.      A.     LCP Recommended Options ...............................   59
  3530.  
  3531.      SECURITY CONSIDERATIONS ......................................   60
  3532.  
  3533.      REFERENCES ...................................................   60
  3534.  
  3535.      ACKNOWLEDGEMENTS .............................................   60
  3536.  
  3537.      CHAIR'S ADDRESS ..............................................   61
  3538.  
  3539.      EDITOR'S ADDRESS .............................................   61
  3540.  
  3541.  
  3542.  
  3543.  
  3544.  
  3545.  
  3546.  
  3547.  
  3548.  
  3549.  
  3550.  
  3551.  
  3552.  
  3553.  
  3554.  
  3555.  
  3556.  
  3557.  
  3558.  
  3559.  
  3560.  
  3561.  
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568.  
  3569.  
  3570.  
  3571.  
  3572.  
  3573.  
  3574.  
  3575.  
  3576.  
  3577.  
  3578.